Package eu.soupmc

Class GameAPI.GameProfile

java.lang.Object
eu.soupmc.GameAPI.GameProfile
Enclosing class:
GameAPI

public static class GameAPI.GameProfile extends Object
Sub class to create a game profile of a certain player to have all methods at one location
  • Constructor Details

    • GameProfile

      public GameProfile(org.bukkit.entity.Player p)
      Constructor of GameProfile, requests the Xp of the profile when its created
      Parameters:
      p - The player of the game profile
  • Method Details

    • getPlayerXp

      public int getPlayerXp()
      Get the xp points of the Game Profile
      Returns:
      Players xp
    • getPlayerCoins

      public int getPlayerCoins()
      Get the coins of the Game Profile
      Returns:
      Players coins
    • getPlayerNick

      public boolean getPlayerNick()
      Get the nick status of the Game Profile
      Returns:
      Players nick status
    • addPlayerXp

      public void addPlayerXp(int xp)
      Add xp points to the Game Profile
      Parameters:
      xp - The xp the player should receive
    • addPlayerCoins

      public void addPlayerCoins(int coins)
      Add coins to the Game Profile
      Parameters:
      coins - The coins the player should receive
    • setPlayerNick

      public void setPlayerNick(boolean nick)
      Set the nick status of the Game Profile
      Parameters:
      nick - The nick status of the player
    • update

      public void update(org.bukkit.entity.Player p)
      Requests again
      Parameters:
      p - Updates the values of the player from the database