Class CyberMsgUtils

java.lang.Object
com.github.cyberryan1.cybercore.spigot.utils.CyberMsgUtils

public final class CyberMsgUtils extends Object
Message sending utilities
  • Constructor Details

    • CyberMsgUtils

      public CyberMsgUtils()
  • Method Details

    • sendMessage

      public static void sendMessage(org.bukkit.command.CommandSender entity, String... msgs)
      Sends the CyberColorUtils.getColored(String...) of a given string list to a CommandSender
      Parameters:
      entity - The CommandSender to send the message to
      msgs - The strings to color
    • sendMsg

      public static void sendMsg(org.bukkit.command.CommandSender entity, String... msgs)
      Parameters:
      entity - The CommandSender to send the message to
      msgs - The strings to color
    • sendMessage

      public static void sendMessage(org.bukkit.command.CommandSender entity, List<String> msgs)
      Sends the CyberColorUtils.getColored(String...) of a given string list to a CommandSender
      Parameters:
      entity - The CommandSender to send the message to
      msgs - The strings to color
    • sendMsg

      public static void sendMsg(org.bukkit.command.CommandSender entity, List<String> msgs)
      Parameters:
      entity - The CommandSender to send the message to
      msgs - The strings to color
    • broadcast

      public static void broadcast(String msg)
      Broadcasts a singular message
      Parameters:
      msg - The message to broadcast
    • broadcast

      public static void broadcast(String... msgs)
      Broadcasts multiple messages, each separated by a new line
      Parameters:
      msgs - The messages to broadcast
    • broadcast

      public static void broadcast(List<String> msgs)
      Broadcasts multiple messages, each separated by a new line
      Parameters:
      msgs - The messages to broadcast
    • broadcast

      public static void broadcast(String msg, Predicate<? super org.bukkit.entity.Player> predicate)
      Broadcasts a singular message to all online players who meet the given predicate
      Parameters:
      msg - The message to broadcast
      predicate - The predicate to check against
    • broadcast

      public static void broadcast(List<String> msgs, Predicate<? super org.bukkit.entity.Player> predicate)
      Broadcasts multiple messages, each separated by a new line, to all online players who meet the given predicate
      Parameters:
      msgs - The messages to broadcast
      predicate - The predicate to check against