From 731b4256db3902f51b69f5dd4e5e34717c9ea9b8 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 19 Oct 2026 06:14:05 +0200 Subject: [PATCH] server_bench: turn Paper's connection throttle off (the bots share one address) Co-Authored-By: Claude Opus 5.5 --- tools/server_bench.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/server_bench.py b/tools/server_bench.py index 82f0cebcc..ebd2a1a99 100755 --- a/tools/server_bench.py +++ b/tools/server_bench.py @@ -29,7 +29,8 @@ Horizon side runs target/release/horizon-server with the engine beside it; build Two more Java servers, both dev-only downloads into .local/server-bench/jars (never committed or shipped): - `paper`: Paper's newest build for the pinned version, from PaperMC's download API, checked against the - SHA-256 it publishes, with Paper's own defaults. Paperclip patches the pinned server jar (your copy, put in + SHA-256 it publishes, with Paper's own defaults except `connection-throttle` (off: the bots all join from + one address). Paperclip patches the pinned server jar (your copy, put in its cache so nothing is fetched from Mojang). - `fabric`: the pinned vanilla server on the pinned Fabric loader (packs/fabric.lock.json) with Lithium from packs/mods.lock.json (and Fabric API only if Lithium asks for it), checked against the lock's SHA-512. @@ -247,6 +248,9 @@ def server_command(kind, directory, args): for name in ('cache', 'libraries', 'versions'): (shared / name).mkdir(exist_ok=True) (directory / name).symlink_to(shared / name, target_is_directory=True) + # Paper refuses a second login from one address within 4 s (bukkit.yml's connection-throttle), and + # every bot comes from the same one. Off, as on vanilla; Paper fills in the rest of the file. + (directory / 'bukkit.yml').write_text('settings:\n connection-throttle: -1\n') return [*java, '-jar', jar, '--nogui'] if kind == 'fabric': _, jars, libraries = base.verify_artifacts()