Class MessageUtils

java.lang.Object
me.hsgamer.hscore.bukkit.utils.MessageUtils

public final class MessageUtils extends Object
Methods on messages on Bukkit
  • Method Details

    • sendMessage

      public static void sendMessage(@NotNull @NotNull org.bukkit.command.CommandSender receiver, @NotNull @NotNull String message)
      Send message
      Parameters:
      receiver - the receiver
      message - 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 receiver
      message - the message
      prefix - 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 receiver
      message - the message
      prefix - 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 receivers
      message - 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 receivers
      message - the message
      prefix - 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 receivers
      message - the message
      prefix - the prefix
    • sendMessage

      public static void sendMessage(@NotNull @NotNull UUID uuid, @NotNull @NotNull String message)
      Send message
      Parameters:
      uuid - the unique id of the receiver
      message - 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 receiver
      message - the message
      prefix - 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 receiver
      message - the message
      prefix - the prefix
    • getPrefix

      @NotNull public static @NotNull String getPrefix()
      Get the default prefix
      Returns:
      the prefix
    • setPrefix

      public static void setPrefix(@NotNull @NotNull Supplier<String> prefix)
      Set the default prefix
      Parameters:
      prefix - the prefix
    • setPrefix

      public static void setPrefix(@NotNull @NotNull String prefix)
      Set the default prefix
      Parameters:
      prefix - the prefix