Interface XPrisonGemsAPI

All Superinterfaces:
XPrisonCurrency

public interface XPrisonGemsAPI extends 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 Type
    Method
    Description
    boolean
    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 - the OfflinePlayer to check
      amount - the minimum amount of gems required
      Returns:
      true if the player has at least the specified amount of gems, false otherwise