Package me.hsgamer.hscore.bukkit.utils
Class MessageUtils
java.lang.Object
me.hsgamer.hscore.bukkit.utils.MessageUtils
Methods on messages on Bukkit
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
Get the default prefixstatic void
sendMessage
(@NotNull Collection<org.bukkit.command.CommandSender> receivers, @NotNull String message) Send messagestatic void
sendMessage
(@NotNull Collection<org.bukkit.command.CommandSender> receivers, @NotNull String message, @NotNull String prefix) Send message with prefixstatic void
sendMessage
(@NotNull Collection<org.bukkit.command.CommandSender> receivers, @NotNull String message, @NotNull Supplier<String> prefix) Send message with prefixstatic void
sendMessage
(@NotNull UUID uuid, @NotNull String message) Send messagestatic void
sendMessage
(@NotNull UUID uuid, @NotNull String message, @NotNull String prefix) Send message with prefixstatic void
sendMessage
(@NotNull UUID uuid, @NotNull String message, @NotNull Supplier<String> prefix) Send message with prefixstatic void
sendMessage
(@NotNull org.bukkit.command.CommandSender receiver, @NotNull String message) Send messagestatic void
sendMessage
(@NotNull org.bukkit.command.CommandSender receiver, @NotNull String message, @NotNull String prefix) Send message with prefixstatic void
sendMessage
(@NotNull org.bukkit.command.CommandSender receiver, @NotNull String message, @NotNull Supplier<String> prefix) Send message with prefixstatic void
Set the default prefixstatic void
Set the default prefix
-
Method Details
-
sendMessage
public static void sendMessage(@NotNull @NotNull org.bukkit.command.CommandSender receiver, @NotNull @NotNull String message) Send message- Parameters:
receiver
- the receivermessage
- the message
-
sendMessage
public static void sendMessage(@NotNull @NotNull org.bukkit.command.CommandSender receiver, @NotNull @NotNull String message, @NotNull @NotNull String prefix) Send message with prefix- Parameters:
receiver
- the receivermessage
- the messageprefix
- the prefix
-
sendMessage
public static void sendMessage(@NotNull @NotNull org.bukkit.command.CommandSender receiver, @NotNull @NotNull String message, @NotNull @NotNull Supplier<String> prefix) Send message with prefix- Parameters:
receiver
- the receivermessage
- the messageprefix
- the prefix
-
sendMessage
public static void sendMessage(@NotNull @NotNull Collection<org.bukkit.command.CommandSender> receivers, @NotNull @NotNull String message) Send message- Parameters:
receivers
- the collection of receiversmessage
- the message
-
sendMessage
public static void sendMessage(@NotNull @NotNull Collection<org.bukkit.command.CommandSender> receivers, @NotNull @NotNull String message, @NotNull @NotNull String prefix) Send message with prefix- Parameters:
receivers
- the collection of receiversmessage
- the messageprefix
- the prefix
-
sendMessage
public static void sendMessage(@NotNull @NotNull Collection<org.bukkit.command.CommandSender> receivers, @NotNull @NotNull String message, @NotNull @NotNull Supplier<String> prefix) Send message with prefix- Parameters:
receivers
- the collection of receiversmessage
- the messageprefix
- the prefix
-
sendMessage
Send message- Parameters:
uuid
- the unique id of the receivermessage
- the message
-
sendMessage
public static void sendMessage(@NotNull @NotNull UUID uuid, @NotNull @NotNull String message, @NotNull @NotNull String prefix) Send message with prefix- Parameters:
uuid
- the unique id of the receivermessage
- the messageprefix
- the prefix
-
sendMessage
public static void sendMessage(@NotNull @NotNull UUID uuid, @NotNull @NotNull String message, @NotNull @NotNull Supplier<String> prefix) Send message with prefix- Parameters:
uuid
- the unique id of the receivermessage
- the messageprefix
- the prefix
-
getPrefix
Get the default prefix- Returns:
- the prefix
-
setPrefix
Set the default prefix- Parameters:
prefix
- the prefix
-
setPrefix
Set the default prefix- Parameters:
prefix
- the prefix
-