Class LuaMessageUtils

java.lang.Object
dev.selena.luacore.utils.text.ContentUtils
dev.selena.luacore.utils.text.LuaMessageUtils

public class LuaMessageUtils extends ContentUtils
Used for sending messages to both console and users
  • Constructor Details

    • LuaMessageUtils

      public LuaMessageUtils()
  • Method Details

    • json_dump

      public static void json_dump(Object cls)
      Dumps a Java class to console, can be used for most.
      Parameters:
      cls - The Class instance you want to dump to console
      See Also:
    • json_dump

      public static void json_dump(String prefix, Object cls)
      Dumps a Java class to console, can be used for most.
      Parameters:
      prefix - The prefix you want to add before the json dump
      cls - The Class instance you want to dump to console
    • consoleSend

      public static void consoleSend(Object content)
      Sends a message to console
      Parameters:
      content - The content you want to send to console
    • consoleWarn

      public static void consoleWarn(Object content)
      Used for sending a warning to the console
      Parameters:
      content - The warning message you want to send
    • consoleError

      public static void consoleError(Object content)
      Used for sending an error to the console
      Parameters:
      content - The error message you want to send
    • playerSend

      public static void playerSend(org.bukkit.entity.Player player, Object... content)
      Sends a message to the selected player
      Parameters:
      player - Player you want to message
      content - Message content you want to send to the player
    • sender

      public static void sender(org.bukkit.command.CommandSender sender, Object... content)
      Sends a message to a command sender
      Parameters:
      sender - The command sender
      content - The message content
    • announce

      public static void announce(Object... message)
      Sends a message to all online players
      Parameters:
      message - Message content.
    • verboseWarn

      public static void verboseWarn(String warning)
      Used for debugging sending a warning to the console
      Parameters:
      warning - The warning message you want to send
      See Also:
    • verboseError

      public static void verboseError(String error)
      Used for debugging sending an error to the console
      Parameters:
      error - The error message you want to send
      See Also:
    • verboseMessage

      public static void verboseMessage(String message)
      Used for debugging sending a message to the console
      Parameters:
      message - The message you want to send
      See Also: