Package dev.selena.luacore.utils.text
Class LuaMessageUtils
java.lang.Object
dev.selena.luacore.utils.text.ContentUtils
dev.selena.luacore.utils.text.LuaMessageUtils
Used for sending messages to both console and users
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Sends a message to all online playersstatic void
consoleError
(Object content) Used for sending an error to the consolestatic void
consoleSend
(Object content) Sends a message to consolestatic void
consoleWarn
(Object content) Used for sending a warning to the consolestatic void
Dumps a Java class to console, can be used for most.static void
Dumps a Java class to console, can be used for most.static void
playerSend
(org.bukkit.entity.Player player, Object... content) Sends a message to the selected playerstatic void
Sends a message to a command senderstatic void
verboseError
(String error) Used for debugging sending an error to the consolestatic void
verboseMessage
(String message) Used for debugging sending a message to the consolestatic void
verboseWarn
(String warning) Used for debugging sending a warning to the consoleMethods inherited from class dev.selena.luacore.utils.text.ContentUtils
capsFirst, color, colorArray, colorArray, colorList
-
Constructor Details
-
LuaMessageUtils
public LuaMessageUtils()
-
-
Method Details
-
json_dump
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
Dumps a Java class to console, can be used for most.- Parameters:
prefix
- The prefix you want to add before the json dumpcls
- The Class instance you want to dump to console
-
consoleSend
Sends a message to console- Parameters:
content
- The content you want to send to console
-
consoleWarn
Used for sending a warning to the console- Parameters:
content
- The warning message you want to send
-
consoleError
Used for sending an error to the console- Parameters:
content
- The error message you want to send
-
playerSend
Sends a message to the selected player- Parameters:
player
- Player you want to messagecontent
- Message content you want to send to the player
-
sender
Sends a message to a command sender- Parameters:
sender
- The command sendercontent
- The message content
-
announce
Sends a message to all online players- Parameters:
message
- Message content.
-
verboseWarn
Used for debugging sending a warning to the console- Parameters:
warning
- The warning message you want to send- See Also:
-
verboseError
Used for debugging sending an error to the console- Parameters:
error
- The error message you want to send- See Also:
-
verboseMessage
Used for debugging sending a message to the console- Parameters:
message
- The message you want to send- See Also:
-