com.amoebaman.kitmaster.enums
Enum GiveKitResult

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

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


Enum Constant Summary
FAIL_CANCELLED
          The kit was not given because a 3rd party plugin cancelled it.
FAIL_COST
          The kit was not given because the player could not afford it.
FAIL_NO_PERMS
          The kit was not given because the player did not have permissions.
FAIL_NULL_KIT
          The kit was not given because it was null.
FAIL_SINGLE_USE
          The kit was not given because the player had already taken it.
FAIL_TIMEOUT
          The kit was not given because the player had not waited for the timeout.
SUCCESS
          The kit was successfully given.
 
Method Summary
static GiveKitResult valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GiveKitResult[] 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

SUCCESS

public static final GiveKitResult SUCCESS
The kit was successfully given.


FAIL_NO_PERMS

public static final GiveKitResult FAIL_NO_PERMS
The kit was not given because the player did not have permissions.


FAIL_TIMEOUT

public static final GiveKitResult FAIL_TIMEOUT
The kit was not given because the player had not waited for the timeout.


FAIL_SINGLE_USE

public static final GiveKitResult FAIL_SINGLE_USE
The kit was not given because the player had already taken it.


FAIL_CANCELLED

public static final GiveKitResult FAIL_CANCELLED
The kit was not given because a 3rd party plugin cancelled it.


FAIL_COST

public static final GiveKitResult FAIL_COST
The kit was not given because the player could not afford it.


FAIL_NULL_KIT

public static final GiveKitResult FAIL_NULL_KIT
The kit was not given because it was null.

Method Detail

values

public static GiveKitResult[] 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 (GiveKitResult c : GiveKitResult.values())
    System.out.println(c);

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

valueOf

public static GiveKitResult 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