Interface EconomyIntegration
- All Superinterfaces:
ChatPluginIntegration
Represents a
ChatPluginIntegration able to check an OfflinePlayer's balance.
-
Method Summary
Modifier and TypeMethodDescriptionformatBalance(double balance) Formats the specified amount of money based on this integration's settings.doublegetBalance(OfflinePlayer player) Gets an offline player's balance.
-
Method Details
-
getBalance
Gets an offline player's balance.Will return
Double.MIN_VALUEif this integration is not able to provide the player's balance.- Parameters:
player- Offline player to check- Returns:
- Player's balance
-
formatBalance
Formats the specified amount of money based on this integration's settings.Will return
Utils.NOT_APPLICABLEif this integration is not able to provide the balance's format.- Parameters:
balance- Balance to format- Returns:
- Formatted balance
-