> For the complete documentation index, see [llms.txt](https://timsixths-plugins.gitbook.io/minigameapi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timsixths-plugins.gitbook.io/minigameapi-docs/minigameapi-1.x/minigame-features/game-system/users-in-game.md).

# Users in game

Every player in-game represents the UserGame class.

**How to create a new instance of UserGame?**

```java
UserGame userGame = new UserGameImpl(player.getUniqueId());
```

UserGame methods:

```java
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.
```
