# Commands & permissions

Player commands, organizer tools, sweet management and permission nodes.

## Main command

Use `/trickortreat` or its aliases `/tot`, `/halloween` and `/hw`. `/tot help` displays the command list appropriate to your permissions. Most commands require a player in-game.

## Participant commands

These commands check `trickortreat.player`.

| Command | Action |
| --- | --- |
| `/tot open` | Open the game and costume menu |
| `/tot stats` | Show sweets and discovered-door statistics |
| `/tot warp` | Teleport to the configured event location while the event is started |
| `/tot join` | Join with saved inventory when inventory caching is enabled |
| `/tot leave` | Leave and restore the cached inventory |

`join` and `leave` require `General.use_cach_inventorys: true`. Set the event location and start the event through the setup tools before testing `warp` or `join`.

## Organizer commands

These commands check `trickortreat.admin`.

| Command | Action |
| --- | --- |
| `/tot setupItem` | Receive the setup item |
| `/tot gameItem` | Receive the game item |
| `/tot reload` | Reload settings and rebuild menus |
| `/tot cancel` | Cancel an applicable setup selection flow |
| `/tot debug` | Compare your current and needed costume |
| `/tot newcostume` | Generate a new needed costume for yourself |
| `/tot sweets add <player> <amount>` | Add sweets to an online player |
| `/tot sweets remove <player> <amount>` | Remove sweets from an online player |
| `/tot sweets set <player> <amount>` | Set an online player's sweet balance |
| `/tot reset <player> all` | Clear the online player's sweets and door progress |
| `/tot reset <player> rewards` | Clear only sweets |
| `/tot reset <player> doors` | Clear only door progress |

Sweet management is also available from the server console. The target must be online. Reset operations clear progress immediately; use them deliberately.

## Permission setup

Grant `trickortreat.player` to the participant group and `trickortreat.admin` only to event organizers. The plugin checks these exact nodes in source; do not assume it automatically grants player access from a wildcard or default permission declaration.

Setup-item controls and doors are covered in [event setup](/trickortreat/wiki/event-setup).
