Class SpigotMessageSender
java.lang.Object
fr.prodrivers.bukkit.commons.chat.SpigotMessageSender
- All Implemented Interfaces:
MessageSender
Default implementation of message sender helper that uses Bukkit/Spigot functions.
This implementation is intended for single servers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Generic message receiver, that potentially supports non-local players, using a defined prefixvoid
send
(@NonNull UUID receiverPlayerUniqueId, @NonNull net.md_5.bungee.api.chat.BaseComponent[] components, @NonNull String prefix) Generic message receiver, that potentially supports non-local players, using a defined prefixvoid
send
(@NonNull org.bukkit.command.CommandSender sender, @NonNull String message, @NonNull String prefix) Generic message sendervoid
send
(@NonNull org.bukkit.command.CommandSender sender, @NonNull net.md_5.bungee.api.chat.BaseComponent[] components, @NonNull String prefix) Generic message receiver, using a defined prefix
-
Constructor Details
-
SpigotMessageSender
public SpigotMessageSender()
-
-
Method Details
-
send
public void send(@NonNull org.bukkit.command.CommandSender sender, @NonNull String message, @NonNull String prefix) Description copied from interface:MessageSender
Generic message sender- Specified by:
send
in interfaceMessageSender
- Parameters:
sender
- Receiving entitymessage
- Message to sendprefix
- Prefix to use
-
send
public void send(@NonNull org.bukkit.command.CommandSender sender, @NonNull net.md_5.bungee.api.chat.BaseComponent[] components, @NonNull String prefix) Description copied from interface:MessageSender
Generic message receiver, using a defined prefix- Specified by:
send
in interfaceMessageSender
- Parameters:
sender
- Receiving entitycomponents
- Message to sendprefix
- Prefix to use
-
send
public void send(@NonNull UUID receiverPlayerUniqueId, @NonNull String message, @NonNull String prefix) Description copied from interface:MessageSender
Generic message receiver, that potentially supports non-local players, using a defined prefix- Specified by:
send
in interfaceMessageSender
- Parameters:
receiverPlayerUniqueId
- Receiving playermessage
- Message to sendprefix
- Prefix to use
-
send
public void send(@NonNull UUID receiverPlayerUniqueId, @NonNull net.md_5.bungee.api.chat.BaseComponent[] components, @NonNull String prefix) Description copied from interface:MessageSender
Generic message receiver, that potentially supports non-local players, using a defined prefix- Specified by:
send
in interfaceMessageSender
- Parameters:
receiverPlayerUniqueId
- Receiving playercomponents
- Message to sendprefix
- Prefix to use
-