Enum Class CommandLoggingLevel

java.lang.Object
java.lang.Enum<CommandLoggingLevel>
org.kingdoms.commands.CommandLoggingLevel
All Implemented Interfaces:
Serializable, Comparable<CommandLoggingLevel>, Constable

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

    • ALL

      public static final CommandLoggingLevel ALL
      All normal messages should be shown.
    • INFO

      public static final CommandLoggingLevel INFO
      Some commands may send multiple messages to multiple players. For example, `/k admin rp` sends a message to the command executor saying the command was sucessful and another message to all members of the kingdom saying that their resource points were changed. This command simply disables the message sent to the command executor.

      This of course still not send any messages if an admin tries to modify their own kingdom's resource points because they are the message receiver in both cases.

    • ERRORS

      public static final CommandLoggingLevel ERRORS
      Only messages that make a command unsuccessful should be shown.
    • NONE

      public static final CommandLoggingLevel NONE
      No messages should be shown to anyone.
  • Method Details

    • values

      public static CommandLoggingLevel[] 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 CommandLoggingLevel 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
    • atLeast

      public boolean atLeast(CommandLoggingLevel loggingLevel)