Kits
Sets of items players can claim, each with an optional permission and cooldown.
Commands
| Command | Permission | What it does |
|---|---|---|
/kit (alias /kits) | none | Lists the kits. |
/kit <name> | the kit's own, if it has one | Gives the kit, if its cooldown is over. |
/kit create <id> <name> | graycore.commands.kits.admin | Creates a kit from the contents of your inventory. |
Kit files
Each kit is a file of plugins/GrayCorePaper/modules/kits/kits/, named after its id:
| Field | What it is |
|---|---|
id | The kit's id, also the file name. |
name | What players type and see. |
permission | Needed to claim it. Empty: everyone. |
cooldown | Seconds before the same player can claim it again. 0: no cooldown. |
gui-slot | Its place in a menu. |
items | The items given. |
/kit create writes the file; edit the permission and the cooldown in it, then /gcadmin reload.
Settings
config.yml:
| Setting | Default | What it is |
|---|---|---|
playerDataKey | kits.usages | Where the cooldowns are stored in the player profiles. Do not change it once players have used kits. |
The cooldowns follow the player across servers: they are part of their profile.