Package org.kingdoms.commands
Enum Class CommandLoggingLevel
- All Implemented Interfaces:
Serializable,Comparable<CommandLoggingLevel>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanatLeast(CommandLoggingLevel loggingLevel) static CommandLoggingLevelReturns the enum constant of this class with the specified name.static CommandLoggingLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All normal messages should be shown. -
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
Only messages that make a command unsuccessful should be shown. -
NONE
No messages should be shown to anyone.
-
-
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
-
atLeast
-