Enum Class Message

java.lang.Object
java.lang.Enum<Message>
adhdmc.simplepms.utils.Message
All Implemented Interfaces:
Serializable, Comparable<Message>, Constable

public enum Message extends Enum<Message>
  • Enum Constant Details

    • PLUGIN_PREFIX

      public static final Message PLUGIN_PREFIX
      Default: <yellow>SimplePM<white> »
    • CONSOLE_FORMAT

      public static final Message CONSOLE_FORMAT
      Default: <dark_red>[<red>Server</red>]</dark_red>
    • CONSOLE_FORMAT_SPY

      public static final Message CONSOLE_FORMAT_SPY
      Default: <gray>[Server]</gray>
    • CONFIG_RELOADED

      public static final Message CONFIG_RELOADED
      Default: <plugin_prefix> <gold>SimplePM Config has been reloaded
    • ERROR_NO_PERMISSION

      public static final Message ERROR_NO_PERMISSION
      Default: <plugin_prefix> <red>You do not have permission to do this
    • ERROR_NO_RECIPIENT_PROVIDED

      public static final Message ERROR_NO_RECIPIENT_PROVIDED
      Default: <plugin_prefix> <red>You must provide a valid recipient for your message
    • ERROR_RECIPIENT_OFFLINE

      public static final Message ERROR_RECIPIENT_OFFLINE
      Default: <plugin_prefix> There are no players online by the name of <target>
    • ERROR_BLANK_MESSAGE

      public static final Message ERROR_BLANK_MESSAGE
      Default: <plugin_prefix> You cannot send someone a blank message
    • ERROR_RECIPIENT_NO_PERMS

      public static final Message ERROR_RECIPIENT_NO_PERMS
      Default: <plugin_prefix> Sorry, looks like that player cannot receive messages right now
    • ERROR_PLAYER_COMMAND

      public static final Message ERROR_PLAYER_COMMAND
      Default: <plugin_prefix> <red>You must be a player to execute this command.
    • ERROR_PAPI_NEEDS_ARGUMENT

      public static final Message ERROR_PAPI_NEEDS_ARGUMENT
      Default: papi tag requires an argument
    • SENDING_FORMAT

      public static final Message SENDING_FORMAT
      Default: <gray>[<yellow>You</yellow> <gold>→</gold> <green><target></green>]</gray><reset> <message>
    • RECEIVING_FORMAT

      public static final Message RECEIVING_FORMAT
      Default: <gray>[<green><initiator></green> <gold>→</gold> <yellow>You</yellow>]</gray><reset> <message>
    • NO_USER_TO_REPLY

      public static final Message NO_USER_TO_REPLY
      Default: <red>There is nobody to reply to, sorry. Try <gray>/msg [name]</gray> instead
    • SPY_FORMAT

      public static final Message SPY_FORMAT
      Default: <dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <#989898><initiator> → <target> <dark_gray>»</dark_gray> <gray><message>
    • SPY_ENABLED

      public static final Message SPY_ENABLED
      Default: <dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <green>PM Spy has been enabled
    • SPY_DISABLED

      public static final Message SPY_DISABLED
      Default: <dark_gray>[<#989898>PM-Spy</#989898>]</dark_gray> <gray>PM Spy has been disabled
    • LOGGER_INVALID_LOCALE_KEY

      public static final Message LOGGER_INVALID_LOCALE_KEY
      Default: Invalid locale key found:
    • PDC_CONSOLE

      public static final Message PDC_CONSOLE
  • Field Details

  • Constructor Details

    • Message

      private Message(String message)
  • Method Details

    • values

      public static Message[] 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

      public static Message valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMessage

      public String getMessage()
      Gets the content of this message
      Returns:
      String
    • setMessage

      public void setMessage(String message)
      Sets the content of this message
      Parameters:
      message - String