Interface IEconomyManager
- All Known Implementing Classes:
VaultManager
public interface IEconomyManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbuyStructure(IPlayer player, IWorld world, StructureType type, int blockCount) Buys a structure for a player.getPrice(StructureType type, int blockCount) Gets the price ofStructureTypefor a specific number of blocks.booleanChecks if the economy manager is enabled.
-
Method Details
-
buyStructure
Buys a structure for a player.- Parameters:
player- The player whose bank account to use.world- The world the structure is in.type- TheStructureTypeof the structure.blockCount- The number of blocks in the structure.- Returns:
- True if the player bought the structure successfully.
-
getPrice
Gets the price ofStructureTypefor a specific number of blocks.- Parameters:
type- TheStructureType.blockCount- The number of blocks.- Returns:
- The price of this
StructureTypewith this number of blocks.
-
isEconomyEnabled
boolean isEconomyEnabled()Checks if the economy manager is enabled.- Returns:
- True if the economy manager is enabled.
-