Match Rules & Limits

Control how a match plays: rules set on the kit, rules set on the arena, rules players pick for a /duel, rules on custom kits, and limits on items and enchants in kit layouts.

Which Rule Wins

A rule can be set in more than one place. When they disagree, this order decides:

  1. /duel match settings chosen by the player who sent the duel request.
  2. Arena rules from arena-rules.yml.
  3. Kit rules set with /kit commands (or the custom kit settings for custom kits).

Queue matches and party matches never use /duel settings. They use the arena rule, then the kit.

Kit Rules

Each kit has its own rules. Change them with these commands (permission shyamduels.admin). Leave out true|false to switch the rule to the other state.

CommandWhat it does
/kit build <kit> <true|false>Lets players place and break blocks. The arena must also have build turned on (/arena build).
/kit allowblock <kit>Adds the block in your hand to the kit's block list and turns build on. With an empty list every block is allowed. Once the list has blocks, only those blocks can be used.
/kit removeblock <kit>Removes the block in your hand from the list.
/kit nofalldamage <kit> <true|false>Turns fall damage off.
/kit doublejump <kit> [true|false]Lets players double jump.
/kit flight <kit> [true|false]Lets players fly during the match.
/kit infiniteblocks <kit> [true|false]Placed blocks come back to the player's hand.
/kit bedbombing <kit> [true|false]Beds explode when used, like in the Nether.
/kit autoignite <kit> [true|false]Placed TNT and spawned creepers light up right away.
/kit blockdecay <kit> [true|false]Placed blocks disappear after block-decay.timer seconds.
/kit nohunger <kit> [true|false]Players never get hungry.
/kit disablenaturalregen <kit> [true|false]Turns off health regeneration from food.
/kit uhcgaps <kit> [true|false]Golden apples heal like in UHC.
/kit nohealthindicator <kit> [true|false]Hides the health indicator in this kit.
/kit setsaturation <kit> <amount>Sets the saturation players start with.
/kit bedwars <kit> [true|false]Turns the kit into a BedFight kit.
/kit bridge <kit> [true|false]Turns the kit into a Bridge kit.
/kit matchstartpots <kit> [enable|disable|scan]Splash potions in the kit are thrown at match start. See Kit Setup.

Where a kit can be played

CommandWhat it does
/kit types <kit>Shows where the kit can be used.
/kit types <kit> <duel|ffa|queue|ranked> <true|false>Turns one place on or off.
/kit ranked <kit> [true|false]Shows the kit in ranked queues.
/kit duelonly <kit> [true|false]Kit can only be used in /duel.
/kit ffaonly <kit> [true|false]Kit can only be used in FFA.
/kit unqueueable <kit> [true|false]Kit is hidden from the queues.
/kit queuerounds <kit> <amount> [ranked|unranked|all]Number of rounds for queue matches with this kit.

Arena Rules

An arena can change three rules for every match played in it. Each rule is kit (follow the kit, the default), on or off.

Ruleonoff
fall-damageFall damage is on.No fall damage.
block-breakingPlayers can break any block and pick up liquids. The kit's block list is ignored. The arena must still have build on.Players cannot break blocks.
bed-bombingBeds explode.Beds do not explode.

Explosions (TNT, creepers, crystals) still follow the kit.

/arena rule <arena>                                         # show the arena's rules
/arena rule <arena> <fall-damage|block-breaking|bed-bombing> <kit|on|off>
/arena rule reload                                         # reload arena-rules.yml

Rules are saved in plugins/ShyamDuels/arena-rules.yml. Arena copies (clones and instances) use the rules of the arena they were copied from. If the file does not exist, every arena follows the kit.

arenas:
  sumo1:
    fall-damage: "off"
    bed-bombing: "on"
Quote on and off
YAML reads on and off without quotes as true and false. Write them in quotes ("on") when you edit the file by hand. The command does this for you.

/duel Match Settings

When a player sends a duel from the duel dialog, the send page can show rule switches. The opponent sees the chosen rules in the request, and the match uses them.

duel-settings:
  enabled: true
  options:
    fall-damage: true
    double-jump: true
    infinite-blocks: true
    bed-bombing: true

Set an option to false to hide it. Servers that update from an older version get enabled: false, so the dialog looks the same as before. This needs gui.mode: DIALOG, because the switches are on the dialog send page.

Custom Kit Rules

Players can turn on match rules for their own custom kits from the kit settings menu or dialog. You choose which rules they may use:

custom-kits:
  rules:
    bed-bombing: true
    double-jump: true
    infinite-blocks: true
    flight: false        # flight lets players leave the fight, so it is off by default
    auto-ignite: true

A rule set to false is hidden and is not used, even for kits that already had it on. Servers that update from an older version get every rule set to false, and the menu buttons get no slot. Give a button a slot in menus/customkits-settings.yml to show it.

Kit Item and Enchant Limits

Limit how many of an item a kit layout may hold, and the highest level of an enchant. Players edit their layouts in the kit editor and kit room. Limits stop them from taking more than you allow.

/kit limit item <kit> <item|hand> <amount|remove>     # for example /kit limit item Crystal totem_of_undying 2
/kit limit enchant <kit> <enchant> <level|remove>  # for example /kit limit enchant Sword sharpness 4
/kit limit list <kit>
/kit limit clear <kit>
/kit limit reload

Limits are saved in plugins/ShyamDuels/kit-limits.yml. If the file does not exist, there are no limits.

kits:
  crystal:
    items:
      TOTEM_OF_UNDYING: 2
    enchants:
      minecraft:sharpness: 4