Kit Setup

Make kits, change them, give them a kit room, and sort them into categories.

Make a Kit

  1. Put the items in your inventory and hotbar, wear the armor and put an item in your offhand.
  2. Run /kit create NoDebuff. Your inventory, armor, offhand and potion effects are saved.
  3. Hold the item that should show the kit in menus and run /kit seticon NoDebuff.
  4. Optional: give it a menu name with /kit setdisplayname NoDebuff <red>No Debuff.
Names
The kit name is used in commands and files. The display name is what players see in menus, chat and tab completion. Write <smallcaps> in a display name for small capital letters, or turn on small-caps.kit-names.

Change a Kit

/kit setinv NoDebuff     # save your current inventory as the kit
/kit seticon NoDebuff    # use the item in your hand as the icon
/kit setitem NoDebuff    # use the item in your hand as icon and name
/kit load NoDebuff       # put the kit in your inventory to edit it
/kit info NoDebuff       # see the kit's settings

When you change a kit, players keep their own layouts. Run /kit deleteeditedkits NoDebuff to reset every player's layout to the new kit.

Deleting a kit
/kit delete removes the kit, all player layouts of it, and its arena links.

Kit Rules

Kits have rules like building, no fall damage, double jump, hunger and more. Kits can also be set to only show in ranked, duels or FFA. All of this is on its own page: Match Rules & Limits.

Potions at match start

The kit's splash potions (like Speed or Fire Resistance) can be thrown on the player when the match starts.

/kit matchstartpots NoDebuff scan     # find the potions in the kit
/kit matchstartpots NoDebuff enable
/kit matchstartpots NoDebuff list
/kit matchstartpots NoDebuff disable
match-start-potions:
  enabled: true
  delay_seconds: 1
  take-from-inventory: true   # use the potion from the inventory
  blocked-effects: [poison, slowness, weakness, instant_damage, ...]

TNT and creepers

/kit autoignite <kit> lights TNT right when it is placed, and makes creepers from spawn eggs explode right away. The player who placed them gets the kill. If a build kit's block list has flint and steel, fire charge, fire or TNT, players may also light fires.

BedFight kits

/kit bedwars <kit> turns a kit into BedFight. It also turns build on.

Bridge kits

/kit bridge <kit> turns a kit into Bridge.

Kit Editor (for Players)

Players can move items around in their own copy of a kit. This does not change your kit.

/kiteditor            # pick a kit
/kiteditor NoDebuff   # edit NoDebuff right away

Players save with the save button or /kiteditor save. You can set a separate place for the editor with /sd setkiteditor. Editor settings are under kiteditor: in config.yml.

VIP players also get these tools in the editor and kit room:

shyamduels.vip gives all four.

Kit Rooms

A kit room is a menu full of items. In the kit editor, players can take items from it to build their layout. You can make more than one kit room, so each kit can have its own items.

  1. Turn the kit room on for a kit: /kit kitroom NoDebuff true. It opens the default room.
  2. Fill the default room: /sd edit-kitroom. Put items in the menu and close it.
  3. To give a kit its own room, make one: /sd kitroom create crystal. Add a room name at the end to copy it: /sd kitroom create crystal default.
  4. Fill it: /sd kitroom edit crystal
  5. Link the kit to it: /kit kitroom Crystal crystal
CommandWhat it does
/kit kitroom <kit> [true|false]Turns the kit room on or off for a kit.
/kit kitroom <kit> <room>Turns it on and picks which room the kit opens.
/sd edit-kitroom [room]Edits a room. Without a name, the default room.
/sd kitroom create <name> [copy-from]Makes a room, empty or copied.
/sd kitroom edit <room>Edits a room.
/sd kitroom delete <room>Deletes a room. Its kits go back to the default room. The default room cannot be deleted.
/sd kitroom listLists rooms and their kits.

The default room is saved in menus/kitroom_items.yml. Other rooms are in menus/kitrooms/<room>.yml. The menu layout is menus/kitroom.yml. Kit limits also apply to items taken from a kit room.

Custom Kits

Players can build their own kits from items you pick.

custom-kits:
  enabled: true
  base-kit-name: custom
  default-unlocked-kits: 3       # slots every player has
  hide-from-public-menus: false

More slots need customkits.unlock.<slot> or customkits.unlock.all.

Kit Categories

With many kits, you can sort them into categories, like PotPvP or Sword. The menu then shows the categories first. A click on a category opens its kits. Kits not in a category still show in the main menu.

Categories work in the queue menu, the /duel kit menu, the kit editor and party menus. With no categories, menus look normal.

Make a category

  1. Make it: /kit category create potpvp <red>PotPvP
  2. Hold an item and set the icon: /kit category seticon potpvp
  3. Add kits: /kit category addkit potpvp NoDebuff
  4. Optional: put it in a fixed slot: /kit category setslot potpvp 11 (-1 = automatic)
  5. Optional: only show it to some players: /kit category setpermission potpvp shyamduels.category.potpvp

To move your old kit order into a category, run /kit category importorder ranked Ranked Kits. It reads data/order.yml.

Category files

Each category has its own file in plugins/ShyamDuels/categories/<id>.yml. Edit it and run /kit category reload.

id: "potpvp"
display-name: "<gradient:#FF1D54:#FF7B00><b>PotPvP</b></gradient>"
slot: 11
permission: ""                # empty = everyone can see it
icon:
  material: SPLASH_POTION
  # custom-model-data: 1001
  # nexo: "potpvp_icon"
lore:
  - "&7Potion fighting modes."
  - ""
  - "&fKits: &e<kits_count>"
  - "&fQueued: &a<queued> &7| &fPlaying: &b<playing>"
kits:                         # this order is the order in the menu
  - "NoDebuff"
  - "Debuff"
# Optional own layout for this category's menu. Leave out to use menus/queue-kit.yml.
sub-menu:
  enabled: true
  title: "PotPvP Queue"
  size: 54
  border: RED_STAINED_GLASS_PANE
  kit-slots: [10, 12, 14, 16]   # skipped slots stay glass

An old single categories.yml file is still read.

Category lore placeholders

PlaceholderShows
<category_name>, <name>Category name
<category_id>, <id>Category id
<kits_count>, <count>Number of kits
<queued>Players queued in its kits
<playing>Players fighting in its kits
<opponent>, <rounds>Opponent and rounds, in the /duel menu

Kit Commands

See Commands for every /kit and /kit category command.