# Command

## Base command

{% hint style="info" %}
**Usage:** /chatgames \<start|stop|restart|add|remove>
{% endhint %}

## Start

Start game 1 (only works if the game execution is stopped)

{% hint style="info" %}
**Usage:** /chatgames start
{% endhint %}

## Stop

Terminates the game run (only works if the game task is running).

{% hint style="info" %}
**Usage:** /chatgames stop
{% endhint %}

## Restart

Restart the game task and start with the first game.

{% hint style="info" %}
**Usage:** /chatgames restart
{% endhint %}

## Add

Creates and adds a game to the chatgames.yml file directly from the server (I do not recommend it).

{% hint style="info" %}
**Usage:** /chatgames add \<name> \<message1,message1,...> \<keyword1,keyword2,...> \<reward1,reward2,...>

**Example:** /chatgames add game3 4+4 8 eco give %winner% 100
{% endhint %}

## Remove

Removes a game from the chatgames.yml file.

{% hint style="info" %}
**Usage:** /chatgames remove \<name>

**Example:** /chatgames remove game3
{% endhint %}
