Interface Messenger
- All Known Implementing Classes:
AdventureMessenger,LegacyMessenger
public interface Messenger
-
Method Summary
Modifier and TypeMethodDescriptionvoidsend(CommandSender player, boolean addPrefix, String path, String fallback, Replaceable<?>... replaceables) Send a message by path with placeholdersvoidsendList(CommandSender player, String path, Replaceable<?>... replaceables) Send a list of messages by path with placeholdersvoidsendRaw(CommandSender player, String rawMessage, Replaceable<?>... replaceables) Send a single ad-hoc message string (raw message already formatted if desired)
-
Method Details
-
send
void send(CommandSender player, boolean addPrefix, String path, String fallback, Replaceable<?>... replaceables) Send a message by path with placeholders- Parameters:
player- targetaddPrefix- whether to add configured prefixpath- message path in localizationfallback- fallback message if path missingreplaceables- placeholders
-
sendRaw
Send a single ad-hoc message string (raw message already formatted if desired)- Parameters:
player- targetrawMessage- raw message stringreplaceables- placeholders
-
sendList
Send a list of messages by path with placeholders- Parameters:
player- targetpath- message path in localizationreplaceables- placeholders
-