Enum CurrencyProviderType

java.lang.Object
java.lang.Enum<CurrencyProviderType>
de.marcely.bedwars.api.cosmetics.currency.CurrencyProviderType
All Implemented Interfaces:
Serializable, Comparable<CurrencyProviderType>, java.lang.constant.Constable

public enum CurrencyProviderType extends Enum<CurrencyProviderType>
Represents the generic type of a currency provider.
  • Enum Constant Details

    • INTERNAL

      public static final CurrencyProviderType INTERNAL
      Built-in currency that does not rely on any other plugin.

      Player data is stored using MBedwars' player properties system.

    • VAULT

      public static final CurrencyProviderType VAULT
      Currency that is provided by the Vault plugin.
    • PLAYER_POINTS

      public static final CurrencyProviderType PLAYER_POINTS
      Currency of the PlayerPoints plugin.
    • PVPLEVELS

      public static final CurrencyProviderType PVPLEVELS
      Currency of the PVPLevels plugin.
  • Method Details

    • values

      public static CurrencyProviderType[] 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

      public static CurrencyProviderType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getPluginName

      @Nullable public @Nullable String 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

      @Nullable public static @Nullable CurrencyProviderType byName(String name)
      Gets the type by its Enum.name() while being case-insensitive.
      Parameters:
      name - The name to match
      Returns:
      The type or null if none was found