Interface Level


public interface Level
  • Method Details

    • getLevel

      String getLevel(org.bukkit.entity.Player p)
      Returns:
      current player level formatted as string.
    • getPlayerLevel

      int getPlayerLevel(org.bukkit.entity.Player p)
      Returns:
      current player level as number.
    • getRequiredXpFormatted

      String getRequiredXpFormatted(org.bukkit.entity.Player p)
      Get required xp as string. 2000 - 2k
      Returns:
      required xp for next level.
    • getProgressBar

      String getProgressBar(org.bukkit.entity.Player p)
      Returns:
      current progress bar.
    • getCurrentXp

      int getCurrentXp(org.bukkit.entity.Player p)
      Returns:
      current xp.
    • getCurrentXpFormatted

      String getCurrentXpFormatted(org.bukkit.entity.Player p)
      Returns:
      current xp formatted.
    • getRequiredXp

      int getRequiredXp(org.bukkit.entity.Player p)
      Returns:
      required xp
    • addXp

      void addXp(org.bukkit.entity.Player player, int xp, PlayerXpGainEvent.XpSource source)
      Add some xp to target player.
    • setXp

      void setXp(org.bukkit.entity.Player player, int currentXp)
      Set player xp.
    • setLevel

      void setLevel(org.bukkit.entity.Player player, int level)
      Set player level.