Skip to main content

Kits

Sets of items players can claim, each with an optional permission and cooldown.

Commands​

CommandPermissionWhat it does
/kit (alias /kits)noneLists the kits.
/kit <name>the kit's own, if it has oneGives the kit, if its cooldown is over.
/kit create <id> <name>graycore.commands.kits.adminCreates 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:

FieldWhat it is
idThe kit's id, also the file name.
nameWhat players type and see.
permissionNeeded to claim it. Empty: everyone.
cooldownSeconds before the same player can claim it again. 0: no cooldown.
gui-slotIts place in a menu.
itemsThe items given.

/kit create writes the file; edit the permission and the cooldown in it, then /gcadmin reload.

Settings​

config.yml:

SettingDefaultWhat it is
playerDataKeykits.usagesWhere 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.