Package com.palmergames.bukkit.towny
Enum Class TownyCommandAddonAPI.CommandType
java.lang.Object
java.lang.Enum<TownyCommandAddonAPI.CommandType>
com.palmergames.bukkit.towny.TownyCommandAddonAPI.CommandType
- All Implemented Interfaces:
Serializable
,Comparable<TownyCommandAddonAPI.CommandType>
,Constable
- Enclosing class:
- TownyCommandAddonAPI
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis CommandType will always execute using a CommandExecutor with the Nation name prepended to the String[] args to which this command should apply.This CommandType will always execute using a CommandExecutor with the Town name prepended to the String[] args to which this command should apply. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TownyCommandAddonAPI.CommandType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESIDENT
-
RESIDENT_SET
-
RESIDENT_TOGGLE
-
NATION
-
NATION_LIST_BY
-
NATION_SET
-
NATION_TOGGLE
-
TOWN
-
TOWN_BUY
-
TOWN_LIST_BY
-
TOWN_SET
-
TOWN_TOGGLE
-
PLOT
-
PLOT_SET
-
PLOT_TOGGLE
-
TOWNY
-
TOWNYADMIN
-
TOWNYADMIN_TOWN
This CommandType will always execute using a CommandExecutor with the Town name prepended to the String[] args to which this command should apply. -
TOWNYADMIN_NATION
This CommandType will always execute using a CommandExecutor with the Nation name prepended to the String[] args to which this command should apply. -
TOWNYADMIN_SET
-
TOWNYADMIN_TOGGLE
-
TOWNYADMIN_RELOAD
-
TOWNYWORLD
-
TOWNYWORLD_SET
-
TOWNYWORLD_TOGGLE
-
-
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
-