com.amoebaman.kitmaster.enums
Enum GiveKitContext

java.lang.Object
  extended by java.lang.Enum<GiveKitContext>
      extended by com.amoebaman.kitmaster.enums.GiveKitContext
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GiveKitContext>

public enum GiveKitContext
extends java.lang.Enum<GiveKitContext>


Enum Constant Summary
COMMAND_GIVEN
          The kit was given by an admin using the /givekit command.
COMMAND_TAKEN
          The kit was taken by the player using the /kit command.
PARENT_GIVEN
          The kit was given because it was the parent kit of another kit.
PLUGIN_GIVEN
          The kit was given by a 3rd party plugin.
PLUGIN_GIVEN_OVERRIDE
          The kit was given by a 3rd party plugin, and will override any permission or timeout checks.
SIGN_TAKEN
          The kit was taken by the player by punching a kit selection sign.
 
Field Summary
 boolean overrides
          Whether or not the context will automatically override permissions and timeout checks.
 
Method Summary
static GiveKitContext valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GiveKitContext[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COMMAND_GIVEN

public static final GiveKitContext COMMAND_GIVEN
The kit was given by an admin using the /givekit command.


PARENT_GIVEN

public static final GiveKitContext PARENT_GIVEN
The kit was given because it was the parent kit of another kit.


PLUGIN_GIVEN

public static final GiveKitContext PLUGIN_GIVEN
The kit was given by a 3rd party plugin.


PLUGIN_GIVEN_OVERRIDE

public static final GiveKitContext PLUGIN_GIVEN_OVERRIDE
The kit was given by a 3rd party plugin, and will override any permission or timeout checks. Only use if you explicitly need to override these checks.


COMMAND_TAKEN

public static final GiveKitContext COMMAND_TAKEN
The kit was taken by the player using the /kit command.


SIGN_TAKEN

public static final GiveKitContext SIGN_TAKEN
The kit was taken by the player by punching a kit selection sign.

Field Detail

overrides

public final boolean overrides
Whether or not the context will automatically override permissions and timeout checks.

Method Detail

values

public static GiveKitContext[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GiveKitContext c : GiveKitContext.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GiveKitContext valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null