Package adhdmc.simplepms.utils
Enum Class Message
- All Implemented Interfaces:
Serializable
,Comparable<Message>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault:<plugin_prefix> <gold>SimplePM Config has been reloaded
Default:<dark_red>[<red>Server</red>]</dark_red>
Default:<gray>[Server]</gray>
Default:<plugin_prefix> You cannot send someone a blank message
Default:<plugin_prefix> <red>You do not have permission to do this
Default:<plugin_prefix> <red>You must provide a valid recipient for your message
Default:papi tag requires an argument
Default:<plugin_prefix> <red>You must be a player to execute this command.
Default:<plugin_prefix> Sorry, looks like that player cannot receive messages right now
Default:<plugin_prefix> There are no players online by the name of <target>
Default:Invalid locale key found:
Default:<red>There is nobody to reply to, sorry. Try <gray>/msg [name]</gray> instead
Default:<yellow>SimplePM<white> »
Default:<gray>[<green><initiator></green> <gold>→</gold> <yellow>You</yellow>]</gray><reset> <message>
Default:<gray>[<yellow>You</yellow> <gold>→</gold> <green><target></green>]</gray><reset> <message>
Default:<dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <gray>PM Spy has been disabled
Default:<dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <green>PM Spy has been enabled
Default:<dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <#989898><initiator> → <target> <dark_gray>»</dark_gray> <gray><message>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the content of this messagevoid
setMessage
(String message) Sets the content of this messagestatic Message
Returns the enum constant of this class with the specified name.static Message[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLUGIN_PREFIX
Default:<yellow>SimplePM<white> »
-
CONSOLE_FORMAT
Default:<dark_red>[<red>Server</red>]</dark_red>
-
CONSOLE_FORMAT_SPY
Default:<gray>[Server]</gray>
-
CONFIG_RELOADED
Default:<plugin_prefix> <gold>SimplePM Config has been reloaded
-
ERROR_NO_PERMISSION
Default:<plugin_prefix> <red>You do not have permission to do this
-
ERROR_NO_RECIPIENT_PROVIDED
Default:<plugin_prefix> <red>You must provide a valid recipient for your message
-
ERROR_RECIPIENT_OFFLINE
Default:<plugin_prefix> There are no players online by the name of <target>
-
ERROR_BLANK_MESSAGE
Default:<plugin_prefix> You cannot send someone a blank message
-
ERROR_RECIPIENT_NO_PERMS
Default:<plugin_prefix> Sorry, looks like that player cannot receive messages right now
-
ERROR_PLAYER_COMMAND
Default:<plugin_prefix> <red>You must be a player to execute this command.
-
ERROR_PAPI_NEEDS_ARGUMENT
Default:papi tag requires an argument
-
SENDING_FORMAT
Default:<gray>[<yellow>You</yellow> <gold>→</gold> <green><target></green>]</gray><reset> <message>
-
RECEIVING_FORMAT
Default:<gray>[<green><initiator></green> <gold>→</gold> <yellow>You</yellow>]</gray><reset> <message>
-
NO_USER_TO_REPLY
Default:<red>There is nobody to reply to, sorry. Try <gray>/msg [name]</gray> instead
-
SPY_FORMAT
Default:<dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <#989898><initiator> → <target> <dark_gray>»</dark_gray> <gray><message>
-
SPY_ENABLED
Default:<dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <green>PM Spy has been enabled
-
SPY_DISABLED
Default:<dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <gray>PM Spy has been disabled
-
LOGGER_INVALID_LOCALE_KEY
Default:Invalid locale key found:
-
PDC_CONSOLE
-
-
Field Details
-
message
String message
-
-
Constructor Details
-
Message
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessage
Gets the content of this message- Returns:
- String
-
setMessage
Sets the content of this message- Parameters:
message
- String
-