# Commands and permissions

## Main Command:

* `/ctw save` — Saves the changes of the plugin.
* `/ctw mapcycle` — Use to cycle the game in a room.
* `/ctw reload` —  Reload the plugin.

## Setup Commands:

### Lobby Setup Command:

* `/ctwsetup lobby addspawn`— Adds a Lobby spawn.
* `/ctwsetup lobby listspawn`— Displays the spawn list.
* `/ctwsetup lobby clear` — Clear the lobby list.

### Map Setup Command:

* `/ctwsetup map add`— Adds the current world as a map.
* `/ctwsetup map remove`— Removes the current world as a map.
* `/ctwsetup map list` — Displays the map list.
* `/ctwsetup map copy [destination]` — Copy a map to a new one.

### Map Config Setup Command:

* `/ctwsetup mapconfig spawn`— Sets the map spawn (spectator)
* `/ctwsetup mapconfig redspawn`— Sets the red spawn.
* `/ctwsetup mapconfig bluespawn` — Sets the blue spawn.
* `/ctwsetup mapconfig maxplayers [#>1]` — Sets the max players number.
* `/ctwsetup mapconfig redwinwool`— After executing the command, place the red wools in their respective points.
* `/ctwsetup mapconfig bluewinwool`— After executing the command, place the blue wools in their respective points.
* `/ctwsetup mapconfig rednoaccess`— With WorldEdit, make a selection for red no access area.
* `/ctwsetup mapconfig bluenoaccess`—  With WorldEdit, make a selection for blue no access area.
* `/ctwsetup mapconfig protected`—  With WorldEdit, make a selection for protection area.
* `/ctwsetup mapconfig weather [fixed=[storm|sun]`— Sets the map weather.
* `/ctwsetup mapconfig woolspawner`— After executing the command, place wools in their respective points and a wool spawn will be generated.
* `/ctwsetup mapconfig restore`— With WorldEdit, make a selection for restoration area.
* `/ctwsetup mapconfig toggleleather`— Using armor for the map?
* `/ctwsetup mapconfig removeregion`— Removes an area, you must to be inside the area.
* `/ctwsetup mapconfig no-drop`— The items on your hand, will not drop at break.

### Room Setup Command:

* `/ctwsetup room add [name]`— Add a new room.
* `/ctwsetup room remove [name]`— Remove a room, the room must be disabled in order to execute this command.
* `/ctwsetup room list`— Displays the room list.
* `/ctwsetup room enable [room]`— Enable a room.
* `/ctwsetup room disable [room]`— Disable a room.
* `/ctwsetup room addmap [room] [map]`— Add a map to a room.
* `/ctwsetup room removemap [room] [map]`— Remove a map to a room.

### Kit Menu Setup Command:

{% hint style="info" %}
To use this service, you have to enable the option "kit-menu" in config.yml
{% endhint %}

* `/ctwsetup kit create [name]`— Create a new kit.
* `/ctwsetup kit edit [name]`— Edit a kit.
* `/ctwsetup kit delete [name]`— Delete a  kit.

## World Commands:

* `/createworld`— Creates a new EMPTY world.
* `/gotoworld`— Teleport to a world.

## Other Commands:

* `/g`— Use the global chat in a game.
* `/join`— Use to open the Join GUI.
* `/leave`— Well..., leave the game.
* `/toggle [obs|dms|blood]`— Toggle the Player Options for the game.&#x20;
* `/spawn`— Teleport to the CTW lobby, can be disabled.
* `/alert`— Sends a global alert in the server.
* `/stats`— View your stats, requires MySQL and enable Stats Service.
* `/kit`— View the Kit Menu, requires to enable Kit Service.
* `/saveglobalkit`— Save the global kit, using the items from your inventory.
* `/savekit`— Saves the Hotbar Editor.
* `/kiteditor`— Executes the Hotbar Editor.
* `/rooms`— View the Rooms GUI.
