Interface PlayerData


public interface PlayerData
  • Method Details

    • getExp

      int getExp()
      Returns:
      the player's exp
    • getKills

      int getKills()
      Returns:
      the player's kills
    • getDeaths

      int getDeaths()
      Returns:
      the player's deaths
    • getLevel

      int getLevel()
      Returns:
      the player's level
    • getKillStreak

      int getKillStreak()
      Returns:
      the player's current kill streak
    • getTopKillStreak

      int getTopKillStreak()
      Returns:
      the player's top kill streak
    • getKDR

      double getKDR()
      Returns:
      the player's kill:death ratio
    • getBal

      double getBal()
      Returns:
      the player's balance
    • getState

      PlayerState getState()
      Returns:
      the player's current playerstate
      See Also:
      PlayerState
    • getOwnedKits

      List<Kit> getOwnedKits()
      Returns:
      a list with all of the player's owned kits
      See Also:
      Kit
    • ownsKit

      boolean ownsKit(Kit kit)
      Parameters:
      kit - the kit that is chcked
      Returns:
      weather the provided kit is owned by the player
    • purchaseKit

      List<Kit> purchaseKit(Kit kit)
      Parameters:
      kit - the kit to purchase
      Returns:
      The updated list of owned kits
    • setState

      void setState(PlayerState state)
      Used to update a player's state
      Parameters:
      state - The new playerstate
      See Also:
      PlayerState
    • updateLevel

      void updateLevel()
      Re-calculates the player's level
    • addExp

      void addExp(int newAmount)
      Adds to the player's current exp
      Parameters:
      newAmount - The exp to be added to the player's current exp
    • getPlayer

      org.bukkit.OfflinePlayer getPlayer()
      Returns:
      the owner of the playerdata