Interface XPrisonPrestigesAPI


public interface XPrisonPrestigesAPI
API interface for handling prestige-related operations in XPrison.
  • Method Summary

    Modifier and Type
    Method
    Description
    getPlayerPrestige(org.bukkit.entity.Player p)
    Gets the current Prestige of a player.
    getPrestigeById(long id)
    Retrieves a Prestige by its unique ID.
    boolean
    isMaxPrestige(org.bukkit.entity.Player player)
    Checks if a player has reached the maximum prestige level.
    void
    setPlayerPrestige(org.bukkit.entity.Player player, long prestigeId)
    Sets the Prestige level of an online player by prestige ID.
    void
    setPlayerPrestige(org.bukkit.entity.Player player, Prestige prestige)
    Sets the Prestige level of an online player.
  • Method Details

    • getPrestigeById

      Prestige getPrestigeById(long id)
      Retrieves a Prestige by its unique ID.
      Parameters:
      id - the Prestige ID
      Returns:
      the Prestige instance matching the given ID
    • getPlayerPrestige

      Prestige getPlayerPrestige(org.bukkit.entity.Player p)
      Gets the current Prestige of a player.
      Parameters:
      p - the player whose prestige is to be retrieved
      Returns:
      the Prestige instance of the player
    • setPlayerPrestige

      void setPlayerPrestige(org.bukkit.entity.Player player, Prestige prestige)
      Sets the Prestige level of an online player.
      Parameters:
      player - the player whose prestige is to be set
      prestige - the Prestige instance to assign
    • setPlayerPrestige

      void setPlayerPrestige(org.bukkit.entity.Player player, long prestigeId)
      Sets the Prestige level of an online player by prestige ID.
      Parameters:
      player - the player whose prestige is to be set
      prestigeId - the ID of the prestige level to assign
    • isMaxPrestige

      boolean isMaxPrestige(org.bukkit.entity.Player player)
      Checks if a player has reached the maximum prestige level.
      Parameters:
      player - the player to check
      Returns:
      true if the player is at max prestige, false otherwise