Kits
Create kits from your inventory, switch on rules, tune number settings and let players arrange their layout.
A kit is the items players fight with plus the rules their match follows. Kits are saved in plugins/PandaDuels/kits.yml. Kit names are always lower case.
Create a kit
- Put on everything the kit should have: armour, offhand, hotbar and the rest of the inventory.
- Hold the item you want as the kit's icon in menus.
- Run:
/pd kit create <kit>
The kit stores all 41 slots of your inventory exactly as they are: 36 inventory and hotbar slots, 4 armour slots and the offhand. The icon is the type of item in your main hand. If your hand is empty, the icon is an iron sword.
To change the items later:
/pd kit load <kit>puts the kit into your inventory. This replaces what you are carrying, so empty your inventory first.- Change what you want.
/pd kit save <kit>saves your inventory as the kit's new items.
Kit items are stored in Paper's item format, which records the Minecraft version they were saved on. A kit made on an older version loads on a newer server and is upgraded. A kit saved on a newer version can't be loaded by an older server, so build kits on the oldest version you plan to run.
Kit commands
| Command | What it does |
|---|---|
/pd kit create <kit> | Creates a kit from your inventory. |
/pd kit save <kit> | Replaces the kit's items with your inventory. |
/pd kit load <kit> | Puts the kit's items into your inventory, replacing what you have. |
/pd kit delete <kit> | Deletes the kit. |
/pd kit list | All kits. (off) marks disabled kits, ★ marks ranked kits. |
/pd kit info <kit> | Name, on/off, ranked, rules and every number setting. |
/pd kit icon <kit> | Sets the icon to the item in your hand. |
/pd kit name <kit> <display name> | The name players see. Use plain text. |
/pd kit rule <kit> | Lists every rule. |
/pd kit rule <kit> <rule> [on|off] | Turns a rule on or off. Without on or off it switches the rule. |
/pd kit setting <kit> <setting> <value> | Changes a number setting. |
/pd kit ranked <kit> [on|off] | Gives the kit a ranked queue. Without a value it turns ranked on. |
/pd kit enable <kit>, /pd kit disable <kit> | A disabled kit is hidden from menus and can't be queued or dueled. |
/pd kit effects <kit> | Copies your current potion effects into the kit. |
Rules
Rules are switches on a kit. Turn one on with /pd kit rule <kit> <rule> on.
| Rule | What it does |
|---|---|
no_hunger | Hunger never drops. |
no_natural_regen | No natural health regeneration from a full hunger bar (UHC style). Potions and golden apples still heal. |
no_fall_damage | No fall damage. |
no_damage | Hits do no damage (training). Other damage is cancelled too. |
sumo | Hits do no damage. A player is out when touching water or lava, or when more than 1 block below the arena floor. |
boxing | Hits do no damage. The first player to land the hit goal (boxing-hits) wins the round. Players see the hit count in their action bar. |
build | Players may place blocks, up to build-height above the floor, and break blocks placed in this match. |
break_placed_only | Only blocks placed in this match can be broken. |
break_any | Any block in the arena can be broken, and players may place blocks. |
no_ender_pearls | Ender pearls can't be thrown. |
pearl_cooldown | Ender pearls have a cooldown of pearl-cooldown-seconds. |
no_end_crystals | End crystals can't be placed. |
no_item_drops | Items can't be dropped. |
combo | No hit delay between hits. |
spleef | Hits do no damage. Only snow, snow blocks, powder snow, sand, red sand and gravel can be broken (plus blocks placed this match), and they drop nothing. A player is out when more than 2 blocks below the floor. To also let players place blocks, turn on build. |
tnt_run | Hits do no damage. The block under a player vanishes shortly after they step on it. A player is out when more than 2 blocks below the floor. |
golden_heads | Any golden apple with a custom name works as a golden head: on top of the normal apple effects it gives Regeneration II for 9 seconds and Absorption for 2 minutes. |
no_potions | Potions can't be drunk or thrown. |
no_bows | Bows and crossbows can't be shot. |
health_scale | Players' max health is set to max-health. |
void_out | A player is out when more than 2 blocks below the floor. |
build_height_limit | Blocks can't be placed above the build limit. See the note below. |
no_friendly_fire | Teammates can't hurt each other. See the note below. |
instant_respawn_rounds | From round 2 on, the next round starts without a countdown. |
own_inventory | Players fight with their own items instead of the kit's. |
In the current version, build_height_limit and no_friendly_fire don't change anything, because both already apply to every kit: blocks can never be placed above build-height, and teammates can never hurt each other.
The "floor" is the height of the arena's lowest spawn. See The floor.
Golden heads
/pd goldenhead [amount] gives you golden heads (up to 64). They work as golden heads in every kit, with or without the golden_heads rule. Put them in a kit with /pd kit save <kit>.
Own-inventory kits
With own_inventory on, the kit's items are ignored. Players keep their own inventory, can't drop items, and whatever they have at the end is what they leave with. These matches are always one round, and the kit editor doesn't apply to them.
A built-in kit called own (display name "Own items") has own_inventory and no_item_drops on. It is what /duel <player> own uses. If you save a kit called own yourself, yours replaces it. See Duels and bets.
What every kit does
Some behaviour applies to every kit, whatever its rules:
- Players can't move out of the arena bounds, and falling below them is out.
- Teammates can't hurt each other.
- Players can't move during the countdown, and hunger doesn't drop during the countdown or between rounds.
- A player holding a totem of undying in either hand uses it as normal.
- Kit items are marked. If one turns up outside a match (dropped, picked up, in a hopper, in an inventory at join), it is removed.
Number settings
/pd kit setting <kit> <setting> <value>| Setting | Default | Lowest | What it does |
|---|---|---|---|
rounds-to-win | 1 | 1 | First to this many round wins takes the match. |
time-limit-seconds | 0 | 0 | Seconds before sudden death. 0 means no limit. |
boxing-hits | 100 | 1 | Hit goal for boxing. |
pearl-cooldown-seconds | 15 | 0 | Ender pearl cooldown for pearl_cooldown. |
build-height | 20 | 1 | How many blocks above the floor players can place blocks. |
max-health | 20.0 | 1 | Max health in half hearts for health_scale. 20 is 10 hearts. |
countdown-seconds | 5 | 0 | Countdown before each round. |
Time limit and sudden death. When a round reaches time-limit-seconds, sudden death starts: everyone still alive gets Wither II. If the round is still going match.sudden-death-seconds later (60 by default), the match ends in a draw.
Rounds. A /duel can ask for a different number of rounds than the kit's own. Party free for all and own-inventory matches are always one round.
Ranked
/pd kit ranked <kit> onA ranked kit appears in the ranked queue menu and can be queued with /queue <kit> ranked. Turn it off with /pd kit ranked <kit> off. See Queues and ranked.
Potion effects
/pd kit effects <kit> saves the effects you have right now. Players get them at the start of every round. Effects you have with no end time last the whole match.
In kits.yml effects are written as effect:amplifier:duration, with the duration in ticks and -1 for the whole match. For example speed:1:-1 is Speed II for the whole match. Only edit kits.yml while the server is stopped, because PandaDuels rewrites the file whenever a kit changes.
Kit layout editor
Players can arrange a kit's items the way they like:
/kiteditor [kit]Without a kit name, a menu asks which kit. The editor shows the kit in a chest menu:
| Menu rows | Matches |
|---|---|
| Rows 1 to 3 | Main inventory |
| Row 4 | Hotbar |
| Row 5 | Helmet, chestplate, leggings, boots, offhand |
| Row 6 | Buttons: Reset (left) and Save (right) |
Players move items between slots, then close the menu or click Save. The layout is used in every match of that kit. Items can't be taken out of the editor.
To go back to the kit's own layout, click Reset or run /kiteditor <kit> reset. Players can also open the editor from the settings menu.
When you change a kit with /pd kit save, saved layouts that no longer hold exactly the same items are ignored, and those players get the kit's own layout until they edit it again.