Skip to Content
PandaScript

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

  1. Put on everything the kit should have: armour, offhand, hotbar and the rest of the inventory.
  2. Hold the item you want as the kit's icon in menus.
  3. 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:

  1. /pd kit load <kit> puts the kit into your inventory. This replaces what you are carrying, so empty your inventory first.
  2. Change what you want.
  3. /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

CommandWhat 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 listAll 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.

RuleWhat it does
no_hungerHunger never drops.
no_natural_regenNo natural health regeneration from a full hunger bar (UHC style). Potions and golden apples still heal.
no_fall_damageNo fall damage.
no_damageHits do no damage (training). Other damage is cancelled too.
sumoHits do no damage. A player is out when touching water or lava, or when more than 1 block below the arena floor.
boxingHits 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.
buildPlayers may place blocks, up to build-height above the floor, and break blocks placed in this match.
break_placed_onlyOnly blocks placed in this match can be broken.
break_anyAny block in the arena can be broken, and players may place blocks.
no_ender_pearlsEnder pearls can't be thrown.
pearl_cooldownEnder pearls have a cooldown of pearl-cooldown-seconds.
no_end_crystalsEnd crystals can't be placed.
no_item_dropsItems can't be dropped.
comboNo hit delay between hits.
spleefHits 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_runHits 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_headsAny 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_potionsPotions can't be drunk or thrown.
no_bowsBows and crossbows can't be shot.
health_scalePlayers' max health is set to max-health.
void_outA player is out when more than 2 blocks below the floor.
build_height_limitBlocks can't be placed above the build limit. See the note below.
no_friendly_fireTeammates can't hurt each other. See the note below.
instant_respawn_roundsFrom round 2 on, the next round starts without a countdown.
own_inventoryPlayers 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>
SettingDefaultLowestWhat it does
rounds-to-win11First to this many round wins takes the match.
time-limit-seconds00Seconds before sudden death. 0 means no limit.
boxing-hits1001Hit goal for boxing.
pearl-cooldown-seconds150Ender pearl cooldown for pearl_cooldown.
build-height201How many blocks above the floor players can place blocks.
max-health20.01Max health in half hearts for health_scale. 20 is 10 hearts.
countdown-seconds50Countdown 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> on

A 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 rowsMatches
Rows 1 to 3Main inventory
Row 4Hotbar
Row 5Helmet, chestplate, leggings, boots, offhand
Row 6Buttons: 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.

On this page