Kits Tutorial
In this page you will find all properties of kits configuration files. Everytime you modify something in these files you must reload the plugin using /kit reload.
Items
Each kit has it items. They are automatically saved in the kit config when you create the kit, but you can modify them manually if you need to (only if you save the items using /kit create <kit> configurable). You can find all item properties HERE.
items:
1:
id: IRON_AXE
name: "&bBasic Iron Axe"
amount: 1
2:
id: IRON_PICKAXE
name: "&bBasic Iron Pickaxe"
amount: 1If you save the kit without using the configurable parameter, you'll see something like this:
items:
'1':
original:
==: org.bukkit.inventory.ItemStack
v: 3953
type: GOLDEN_APPLE
amount: 64Display Items
A kit will display a certain item on the GUI depending on the status of the kit for the player. There are 5 possibilities (default, no_permission, cooldown, one_time, one_time_requirements). The format is the following:
Remember that the item to be displayed has the properties listed HERE.
Default Display Item
The item displayed when the player is able to claim the kit.
No Permissions Display Item
The item displayed when the player doesn't have the permissions to claim the kit.
Cooldown Display Item
The item displayed when the kit is on cooldown, and the player must wait to claim the kit again.
One Time Display Item
The item displayed when the kit has the one_time option enabled, and the player has already claimed the kit once.
One Time Requirements Display Item
The item displayed when the kit has the one_time_requirements option enabled, and the player has already accomplished the requirements once.
Cooldown
The cooldown to claim the kit in seconds.
Permission Required
Whether the player needs a permission to claim the kit (true/false).
Custom Permission
Allows to customize the permission required to use the kit. permission_required must be enabled.
One Time
Whether the kit is only claimable once (true/false).
Auto Armor
Whether kit armor should be equipped automatically when claiming the kit (true/false).
Clear Inventory
When enabled, player inventory will be emptied before giving the kit.
Save Original Items
Whether the items from the kit should be saved as an EXACT COPY of the original items. You should not modify this option, and let the plugin add it to the config automatically when using /kit create <kit> original. Click HERE to know more.
Allow Placeholders on Original Items
Whether the items from the kit can contain PlaceholderAPI variables in the name/lore and should be replaced. Only works when the save_original_items option is set to true.
Actions
You can define certain actions to execute when the player claims a kit, or there is an error when claiming the kit. The format is the following:
Claim Actions
Actions that will be executed when the player claims the kit.
Error Actions
Actions that will be executed when there is an error when claiming the kit (for example, the player doesn't have permissions)
Actions Properties
Action
The action to be executed. All actions HERE. You can use the %player% variable to replace the player name.
Execute Before Items
Whether the action should be executed before giving the kit items to the player (true/false).
Count as Item
When enabled, this action will count as an item, and therefore will be used to count empty slots on the player inventory when claiming the kit. Useful when you want to give items through a command.
Display Item
You can set a display item to a certain action, it is optional. This item will be displayed when previewing the kit.
Requirements
You can make the kit buyable, or even add some extra requirements/conditions.
Price
Add this option if the player must pay to buy the kit.
For this option to work, you need Vault and an economy plugin such as EssentialsX or XConomy.
One Time Requirements
If this option is enabled, the player will need to pay for the kit (or accomplish the requirements) only once.
Extra Requirements
Additional requirements that the player must accomplish to claim the kit. Needs PlaceholderAPI. Use the following format: <variable> <conditional> <value>. Example: %player_level% >= 15
The previous example will check if the player is level 15 or more, if so then the kit could be claimed.
Remember to download the PlaceholderAPI expansion of variables you are using, with the following command: /papi ecloud download <expansion>
Message
It is very important to also specify a requirements message, which will appear when using the %kit_requirements_message% variable in the buy_requirements_inventory inventory (on the inventory.yml file). This message should tell the player what additional requirements are needed, you can customize it completely.
Last updated