Interface XPrisonTokensAPI

All Superinterfaces:
XPrisonCurrency

public interface XPrisonTokensAPI extends XPrisonCurrency
API for managing player tokens.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasEnough(org.bukkit.OfflinePlayer p, long amount)
    Checks if a player has at least a specified amount of tokens.

    Methods inherited from interface dev.drawethree.xprison.api.shared.currency.enums.XPrisonCurrency

    add, getAmount, remove, set
  • Method Details

    • hasEnough

      boolean hasEnough(org.bukkit.OfflinePlayer p, long amount)
      Checks if a player has at least a specified amount of tokens.
      Parameters:
      p - the player
      amount - the amount to check against
      Returns:
      true if the player has at least the specified amount, false otherwise