Create new kit - AlonsoAliaga/AlonsoPvP GitHub Wiki
How to create new kits?
To create new kits you MUST to follow these steps.
Before creating the kit 💡
You need to decide the identifier, the name, the icon and slot.
In this example the identifier will be supporter-kit.
The name will be Supporter Kit so we will use Supporter_Kit replacing spaces with underscores.
The kit icon will be a diamond so we need to hold a diamond in our main hand.
The slot we will use for the icon will be slot 0 (The first slot)
Note: Don't use color nodes, you'll change that later in configuration file.
1️⃣ Creating the empty kit
While holding the diamond in our hand we run the next command:
/alonsopvp kit create supporter-kit Supporter_Kit 0
2️⃣ Selecting armor and inventory
Place items in your inventory like if you had the kit, they will be saved in the exact slot you decide.
Once you decide, run the next command:
/alonsopvp kit inventory supporter-kit
This will save the inventory for the kit.
3️⃣ Adding rewards per kill
If you want players to get an item per kill like "sniper" kit which gives the player x3 arrows per kill.
While holding the item you want to give run the next command:
/alonsopvp kit add supporter-kit
This will add a new reward for the kit when a player kills another.
4️⃣ Customizing the kit
Go to kits.yml file and edit the new kit as you want. You can add a permission so only donors can use it.
You can edit lores, locked lore which will be seen by players that cannot use the kit and unlocked lore for players that has permission to use the kit.
You can change the message sent to the player if they attempt to select the kit when they don't have permission for it.
Once your finish, save the file.
5️⃣ Enabling the kit
Once you have modified everything you need run the next command:
/alonsopvp kit reload
This will reload kits configuration. Now run the next command:
/alonsopvp kit toggle supporter-kit
If everything goes well the kit should be available now using /apvp kits\