Death Swap Guides

Death Swap · Release 3.0.1

Default Configuration Files

Explore the default settings supplied with this release. Server owners can customize these files to suit their server.

config.yml

# ================================================================
# DeathSwap 3.0.1 | ChillVilleMC
# Help: https://www.chillvillemc.com/
# Discord: http://discord.chillvillemc.com
# ================================================================
# Restart after editing. /ds reload validates and reloads only while
# no matches are open. Lobby, NPCs and boards live in displays.yml.

config-version: 4

# ----- Match limits and timing -----------------------------------
# Matches share one weekly normal world, with separated player-sized areas.
# Each match accepts 2-8 players. These limits are fixed by design.
# Limits protect shared minigame servers from unlimited world creation.
max-open-matches: 3
# Set to 45 for a shorter lobby countdown. Begins only after preparation.
countdown-seconds: 60
# Intervals include their warnings. Weighted chances total less than 100.
swap:
  normal:
    minimum-seconds: 60
    maximum-seconds: 180
  short:
    minimum-seconds: 30
    maximum-seconds: 59
    chance-percent: 9
  rare:
    seconds: 300
    chance-percent: 1
  warning:
    minimum-seconds: 3
    maximum-seconds: 10
confirmation-seconds: 20

# ----- Economy (Vault + a compatible economy provider) -----------
# Only the CREATOR pays. Balance checked on creation AND at start.
# Withdrawal happens only at the actual start. No Vault needed at 0.
# With an active economy, reward 0 means no reward (not diamonds).
economy:
  classic:
    start-price: 0.0
    winner-reward: 0.0
  kit:
    start-price: 0.0
    winner-reward: 0.0
# Without a working economy provider, winners receive five diamonds.

# ----- Arena preparation -----------------------------------------
# All weekly areas finish generation and spawn discovery before assignment.
# World creation/unload still requires the main thread; async chunk
# generation is throttled. Slower preparation protects shared servers.
preparation:
  concurrent-chunks: 2
  padding-chunks: 2
  # Shared preparation: abort after this many minutes without chunk progress.
  timeout-minutes: 20
  minimum-spawn-separation: 35
  view-distance: 5
  simulation-distance: 5

# ----- Lobby holograms -------------------------------------------
leaderboards:
  rows: 10
  refresh-seconds: 30

# ----- Five configurable kits, five item entries per kit ----------
# AIR is an empty slot. Amount defaults to one.
# Valid 1.20.4 Bukkit material names, e.g. IRON_SWORD, COOKED_BEEF.
# Optional item fields:
#   name: '&aExample'
#   lore: ['&7First line', '&7Second line']
#   enchantments: {DURABILITY: 3}
#   unbreakable: false
#   equip: true  # Armor auto-equipped if its armor slot is empty.
# All item choices are validated; an invalid config rejects reload.
# GUI previews show every item; players click a kit to select it.
# No selection defaults to kit 1. /ds kit works only before start.
# /ds admin -> Manage Kits edits these same five kits.
# GUI-saved entries include a full serialized stack, which takes precedence.
kits:
  '1':
    name: Chorus Fruit
    items:
      - {material: CHORUS_FRUIT, amount: 1}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
  '2':
    name: Raw Beef
    items:
      - {material: BEEF, amount: 1}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
  '3':
    name: Leather Helmet
    items:
      - {material: LEATHER_HELMET, amount: 1, equip: true}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
  '4':
    name: Leather Boots
    items:
      - {material: LEATHER_BOOTS, amount: 1, equip: true}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
  '5':
    name: Stone Axe
    items:
      - {material: STONE_AXE, amount: 1}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}
      - {material: AIR}

# ----- Optional Citizens starter skins ---------------------------
# Default skins are embedded vanilla Steve/Alex texture properties;
# no skin-account lookup is needed. Change these names only if you
# want Citizens to fetch a DIFFERENT skin instead of the defaults.
npc-skins:
  classic: ''
  kit: ''

# ----- Website leaderboards --------------------------------------
# Writes public stats only: UUID, name, wins and fastest win time.
# Updated after every win and every 30 seconds, off the game thread.
# No open server ports or database access required.
website:
  enabled: true
  refresh-seconds: 30
  top-players: 100
  upload:
    enabled: false
    # Future HTTPS receiver on your website; configure when ready.
    url: ''
    # Generate a secret: python3 -c "import secrets; print(secrets.token_urlsafe(32))"
    # Keep it out of browser JavaScript and public downloads.
    token: ''

# ----- Shared world preparation (Classic and Kit) ----------------
# One weekly world. Every area returns to its full original baseline.
# Old ready-maps/retention/daily-rotation keys are inactive in shared mode.
# Generation pauses while local backend players are online by default.
# Set require-empty-server: false to permit online generation.
# 1.x arena saves: plugin worlds/. 26.x: main-world/dimensions/deathswap/.
# 26.1.1 alpha uses dimensions/minecraft/deathswap/ instead.
# Templates and ownership registry remain in the plugin folder.
world-pool:
  require-empty-server: true
  startup-delay-seconds: 10
  chunks-per-batch: 4
  generation-interval-ticks: 2

# ----- Protected lobby boundary ---------------------------------
# Center is saved with /ds admin setlobby in displays.yml.
# Preview: /ds admin lobbysetup, lobbyradius <blocks>, lobbyconfirm.
# Radius is measured from the center in X/Z (same square as Bingo).
lobby-region:
  radius: 32
  protect: true

# Cosmetic starter-NPC looking, individually for each nearby player.
# Requires ProtocolLib compatible with the target Minecraft release; NPC clicks work without it.
npc-look:
  enabled: true
  range-blocks: 8
  update-interval-ticks: 4

# Rescue below the threshold across the entire lobby footprint plus this buffer.
# Distance is horizontal from the lobby boundary, not from the spawn.
lobby-fall-protection:
  enabled: true
  below-y: 0
  extra-distance: 25

# ----- One weekly world ------------------------------------------
# Size: 500 + 300 per player beyond two, up to 2300 x 2300 for eight.
# Prepare all sizes before countdowns; size locks at actual match start.
# Surface water/ice is counted in EVERY column of every supported size.
# Finished areas wait for all matches/admins to leave before whole-save
# rollback. No new assignments while draining. Existing matches continue.
# Renewal after seven elapsed days waits for matches to finish, then uses
# a fresh seed. First preparation can take a long time: large areas are
# fully generated with throttled async chunks, default only when offline.
shared-world:
  enabled: true
  maximum-players: 8
  gap-blocks: 512
  maximum-surface-water-percent: 30
  maximum-location-attempts: 32

  # These bounds apply across the entire shared-world preparation queue.
  # Keep conservative defaults on a server running other minigames.
  performance:
    # Includes generation AND pending immutable-snapshot analysis (1-2).
    generation-inflight: 1
    maximum-loaded-chunks: 128
    # Includes incomplete/proto chunks, not just Bukkit FULL chunks.
    maximum-resident-holders: 1024
    unload-chunks-per-pass: 8
    unload-interval-ticks: 5
    # Empty chunks and idle world I/O must remain quiet before detaching.
    drain-quiet-ticks: 40
    spawn-samples-per-size: 512
    # Admission pauses; it never forces GC or changes server limits.
    maximum-heap-percent: 75
    maximum-average-tick-ms: 40