Skip to content

Commit 5b4739c

Browse files
committed
Added YAML message options.
1 parent 6c8484c commit 5b4739c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/main/java/net/gcnt/additionsplus/api/utils/Message.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ public interface Message {
3939
*/
4040
void sendTitle(Player... players);
4141

42+
/**
43+
* Set whether placeholders should be parsed.
44+
*
45+
* @param parse Whether placeholders should be parsed.
46+
* @return Current {@link Message}.
47+
*/
48+
Message placeholders(boolean parse);
49+
50+
/**
51+
* Set the player for whom the placeholders should be parsed.
52+
* Set this to null to keep the players you're sending the message to.
53+
*
54+
* @param owner The player for whom the placeholders should be parsed.
55+
* @return Current {@link Message}.
56+
*/
57+
Message placeholderOwner(Player owner);
58+
4259
/**
4360
* Send this message as a title.
4461
*

0 commit comments

Comments
 (0)