Interface IEconomyManager

All Known Implementing Classes:
VaultManager

public interface IEconomyManager
  • Method Details

    • buyStructure

      boolean buyStructure(IPlayer player, IWorld world, StructureType type, int blockCount)
      Buys a structure for a player.
      Parameters:
      player - The player whose bank account to use.
      world - The world the structure is in.
      type - The StructureType of the structure.
      blockCount - The number of blocks in the structure.
      Returns:
      True if the player bought the structure successfully.
    • getPrice

      OptionalDouble getPrice(StructureType type, int blockCount)
      Gets the price of StructureType for a specific number of blocks.
      Parameters:
      type - The StructureType.
      blockCount - The number of blocks.
      Returns:
      The price of this StructureType with this number of blocks.
    • isEconomyEnabled

      boolean isEconomyEnabled()
      Checks if the economy manager is enabled.
      Returns:
      True if the economy manager is enabled.