Package dev.drawethree.xprison.api.gems
Interface XPrisonGemsAPI
- All Superinterfaces:
XPrisonCurrency
API interface for interacting with the Gems system in the XPrison plugin.
Provides methods to get, add, remove, and set gems for players, as well as to check gem balances.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasEnough
(org.bukkit.OfflinePlayer player, long amount) Checks if the specified player has at least the given amount of gems.Methods inherited from interface dev.drawethree.xprison.api.shared.currency.enums.XPrisonCurrency
add, getAmount, remove, set
-
Method Details
-
hasEnough
boolean hasEnough(org.bukkit.OfflinePlayer player, long amount) Checks if the specified player has at least the given amount of gems.- Parameters:
player
- theOfflinePlayer
to checkamount
- the minimum amount of gems required- Returns:
true
if the player has at least the specified amount of gems,false
otherwise
-