Enum CurrencyProviderType
- All Implemented Interfaces:
Serializable
,Comparable<CurrencyProviderType>
,java.lang.constant.Constable
Represents the generic type of a currency provider.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBuilt-in currency that does not rely on any other plugin.Currency of the PlayerPoints plugin.Currency of the PVPLevels plugin.Currency that is provided by the Vault plugin. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CurrencyProviderType
Gets the type by itsEnum.name()
while being case-insensitive.@Nullable String
Get the name of the plugin that provides this currency.static CurrencyProviderType
Returns the enum constant of this type with the specified name.static CurrencyProviderType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
Built-in currency that does not rely on any other plugin.Player data is stored using MBedwars' player properties system.
-
VAULT
Currency that is provided by the Vault plugin. -
PLAYER_POINTS
Currency of the PlayerPoints plugin. -
PVPLEVELS
Currency of the PVPLevels plugin.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPluginName
Get the name of the plugin that provides this currency.- Returns:
- The name of the plugin or
null
if this currency does not depend on a plugin
-
byName
Gets the type by itsEnum.name()
while being case-insensitive.- Parameters:
name
- The name to match- Returns:
- The type or
null
if none was found
-