Classic Duels

Duel system like most famous pvp servers with ELO!

ClassicDuels

Practice-server style 1v1 duels for Spigot / Paper (and forks), in a single jar for Minecraft 1.8 → 26.x.

  • Kit categories (NoDebuff, Sword, Gapple, Sumo, Boxing included; add your own in game)
  • Ranked (Elo matchmaking) and unranked queues, direct challenges, spectating
  • Maps (arenas) bound to each category, added and edited in game
  • 1.8 combat on any version (re-implementation of what OldCombatMechanics does: hit delay, attack cooldown, damage, knockback...)
  • config.yml + lang/*.yml (English and Spanish included, add any language)
  • SQLite statistics, fully asynchronous (wins, losses, Elo, streaks, hits, match history, leaderboards)
  • Players get their inventory/position back after every duel, even after a crash

Install

  1. Put ClassicDuels-1.0.0.jar in plugins/ and start the server.
  2. Edit plugins/ClassicDuels/config.yml (and lang/), then /dueladmin reload.

Requirements: Spigot, Paper or a fork, 1.8 or newer, and whatever Java your server already needs. The SQLite driver is bundled with Spigot/Paper: nothing to install.

Quick start (about 2 minutes)

/dueladmin setlobby                          where players go after a duel (optional)
/dueladmin category list                     defaults: nodebuff, sword, gapple, sumo, boxing

# kit: put the items/armor you want in your inventory, then
/dueladmin category setkit nodebuff

# map: create it, stand at each start position, bind it to categories
/dueladmin arena create dunes nodebuff
/dueladmin arena setspawn dunes 1            stand at player 1's spot, look at the opponent
/dueladmin arena setspawn dunes 2
/dueladmin arena addcategory dunes sword     the same map can serve several categories
/dueladmin arena list                        shows "ready" when it can be used

Players then use /queue (menu) or /duel <player>.

NoDebuff ships with armor, sword, pearls and food only. Healing potions are not part of the default kit because their item data differs on every version: add them with /dueladmin category setkit nodebuff.

Maps per category

An arena belongs to one or more categories (arena addcategory / removecategory). A duel of category X picks a random free arena of X, and an arena hosts one duel at a time. For parallel duels, build more copies of the map and add each one to the category (dunes1, dunes2...).

Command Purpose
arena create <name> [category] new map (optionally bound to a first category)
arena setspawn <name> <1\|2> the two start positions (your position and direction)
arena setspectator <name> spectator spot (default: above the middle)
arena setcorner <name> <1\|2> optional region: movement limit, pearl limit, and required for build kits
arena setdeathy <name> [y\|off] height under which a player counts as having fallen out (defaults: sumo = 3 blocks under the spawn, others = 50)
arena addcategory / removecategory <name> <category> which kits use this map
arena enable\|disable\|tp\|info\|list\|delete\|setname management

Build categories (category set <id> build true): blocks placed or broken, flowing liquid, fire and explosions inside the arena region are recorded and restored when the duel ends (and between rounds). Set both corners of the region on those maps.

Commands

Players (classicduels.use, default: everyone)

Command
/queue [category] [ranked\|unranked] no arguments opens the menu (left click = ranked, right click = unranked)
/queue leave, /leave leave the queue / stop spectating
/duel <player> [category] challenge (no category opens the kit menu); the target gets clickable [ACCEPT] [DENY]
/duel accept\|deny [player], /duel forfeit answer a challenge / give up
/spectate <player> watch a duel
/duelstats [player] [category] statistics
/leaderboard [category\|global] top 10 by Elo (category) or by wins (global)

Admins (classicduels.admin, default: op): /dueladmin help, reload, setlobby, category <list|create|delete|setkit|getkit|seticon|setname|set|info>, arena <...>. /dueladmin category set <id> <option> <value> options: enabled ranked weight hit-delay rounds build regen hunger sumo boxing-hits kb-horizontal kb-vertical. classicduels.bypass.commands (op) lets a player use any command during a duel.

Category rules

Option Meaning
ranked has a ranked queue / Elo
hit-delay damage-immunity ticks (default = combat.default-hit-delay, 20 like 1.8). Low values give combo-style fights
rounds rounds needed to win (best of N)
build players can place/break blocks (map is restored afterwards)
regen natural regeneration (turn off for NoDebuff / Gapple)
hunger food bar drains (off = always full)
sumo no damage; lose by falling or touching liquid
boxing-hits > 0 = boxing: no damage, first to N hits wins
kb-horizontal, kb-vertical per-category knockback override

Old combat (OldCombatMechanics parity)

Only players inside a duel are affected. On 1.8 the game already plays like this, so there only hit delay and knockback are applied.

Module Implementation
Hit delay maximumNoDamageTicks, per category
Attack cooldown (hit cooldown) 1.9+: attack-speed attribute raised to 16 and restored afterwards
Old tool damage 1.8 damage table (sword 4-8, axe 3-7...), configurable
Sharpness +1.25 per level
Strength / Weakness strength x(1 + 1.3 per level), weakness -0.5 per level
Critical hits 1.8 rules (x1.5, sprinting allowed), applied before sharpness like 1.8
Knockback OldCombatMechanics formula (friction, horizontal/vertical, vertical limit, sprint/enchant bonus), applied through PlayerVelocityEvent
Sweep, off hand, ender-pearl cooldown disabled
Golden apples 1.8 enchanted golden apple effects

Every value is in combat: of config.yml. Not included: 1.8 sword-blocking emulation on 1.9+, old bow/fishing-rod knockback, old armor/potion changes.

Statistics (SQLite, async)

plugins/ClassicDuels/stats.db. One dedicated database thread owns the connection; the server thread never waits on the disk. Stats are cached in memory while a player is online, saved in the background after each duel and when they leave, and loaded in the background when they join. Tables: players, stats (per player and category: Elo, wins, losses, ranked wins/losses, win streak, best streak, hits, time fought), matches (history). Leaderboards are cached for 30 seconds.

Files

config.yml (settings + combat), categories.yml and arenas.yml (edited with /dueladmin), lang/en.yml, lang/es.yml (copy one and set language:), data.yml (lobby), stats.db, snapshots/ (temporary player backups while a duel runs).

Build from source

JDK 8 or newer and Maven: mvn clean package → target/ClassicDuels-1.0.0.jar. The plugin is compiled against the 1.8.8 API on purpose: that guarantees everything it calls exists on 1.8; newer features are reached by reflection (util/Compat.java).

Limitations

  • 1v1 only (no parties / 2v2 / FFA yet).
  • Arenas are real areas of a world (no schematic copies): one duel per arena at a time.
  • Folia is not supported.

What has and has not been tested

Tested: the code compiles with -source/-target 8 against a hand-written 1.8.8 API stub, and every Bukkit method it references was audited; the SQL runs on a real SQLite engine; 168 scenario checks pass on a mock server simulating 1.8.8, 1.20.4 and 26.1 (full duel lifecycle, ranked Elo, rounds, quit/forfeit/restore, queue range widening, challenges, spectating, build-map restore, sumo/boxing, combat numbers, knockback).

Not tested on a real Minecraft server. The ready-made jar was compiled against those stubs because the build environment had no internet to download Spigot; the Maven build uses the real API and is the safer option. Areas worth checking first on your server: the 1.8 title countdown (uses NMS reflection), clickable chat buttons, and a first full duel on your newest version.

Classic Duels Team

profile avatar
Owner
  • 9
    Projects
  • 50.6K
    Downloads

Student, Developer, Icon Designer, Son & Single.

More from iLirosqView all