Enum Class AccountKind

java.lang.Object
java.lang.Enum<AccountKind>
com.patelheet.capitalengine.api.AccountKind
All Implemented Interfaces:
Serializable, Comparable<AccountKind>, Constable

public enum AccountKind extends Enum<AccountKind>
What an Account is, which decides who may take money out of it.
  • Enum Constant Details

    • PLAYER

      public static final AccountKind PLAYER
      One per player. Any plugin may move money out (same trust as Vault).
    • PLUGIN

      public static final AccountKind PLUGIN
      An add-on's own account (escrow, savings, ...). Only the owning plugin may take money out.
    • EXTERNAL

      public static final AccountKind EXTERNAL
      A non-player account made by a Vault plugin (for example a Towny town).
    • TREASURY

      public static final AccountKind TREASURY
      The server's wallet. Only serverPay may spend from it; anyone may pay into it.
    • MINT

      public static final AccountKind MINT
      Creates and destroys money. Never exposed as an Account; listed for completeness.
  • Method Details

    • values

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

      public static AccountKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null