🟡Users in game

Every player in-game represents the UserGame class.

How to create a new instance of UserGame?

UserGame userGame = game.createUserGame(player.getUniqueId());

UserGame methods:

int getPoints(); //Gets user's points
int addPoints(int points); //Adds points
int removePoints(int points); //Removes points
void setPoints(int points); //Sets points 
boolean isPlaying(); //Checks when player is playing
void setPlaying(boolean playing); //Sets playing status
boolean hasPoints(int points);  //Check how many coins the player has.

Last updated