Joinqueue

Async Join Queue for NeoForge 1.21.1/1.21.8. Prevents crashes and TPS drops during mass logins by holding players in a thread-safe queue. Admits players at a stable rate. Features a custom position screen. Required on both server and client.

JoinQueue

Versions: NeoForge 1.21.1 & 1.21.8


Prevents server crashes and TPS drops caused by many players joining at the same time (e.g., after a restart or during events). The mod puts connecting players into a waiting line during the Configuration Phase, preventing the Main Thread from overloading.

Features

  • Activation: With default settings the queue is always active (queue_activation_threshold = 0). Set a threshold to only activate above a given online player count. It also force-activates during the grace period after a server restart (default 60s) or whenever TPS drops below 8.0.
  • TPS Check: Players are only released while the server is stable (TPS ≥ 8.0) and the queue is not paused. Releasing stops automatically during heavy lag.
  • Release Rate: Players are let in on a timer — by default every 2s (normal) and every 1s (VIP), configurable via ticks_between_joins / ticks_between_joins_vip.
  • Manual Control: Admins can use /joinqueue pause and /joinqueue resume to stop or start the login process manually, or /joinqueue toggle to enable/disable the whole mod.
  • Priority & Bypass:
    • Staff members bypass the queue entirely.
    • VIP players are moved to the front of the queue and released on a faster timer.
  • Server-Full Handling: When the server reaches its vanilla player cap, normal players are held in the queue (with a "Server is full" message) until a slot opens, instead of being rejected at the network layer. Staff bypass the limit and VIPs may join over it.
  • Async Chunk Loading: Loads spawn chunks on background threads (radius configurable, default 3) before a player joins to prevent main-thread freezes. A hold_back_ms safety ceiling (default 1500ms) guarantees release even if chunks are slow.
  • Queue Screen: Shows players their live position in line, the total queue size, and a custom (configurable) message, including a separate message when the queue is paused.
  • Minimum Wait & Size Cap: Optional min_queue_seconds forces every player to wait a minimum time, and max_queue_size can cap how many players the queue holds.

Commands

All commands require permission level 2 (OP). Changes are saved automatically and take effect immediately.

Command Description
/joinqueue status Shows master switch, release state, server-ready state, TPS, queue size, threshold and staff/VIP counts.
/joinqueue toggle Enables or disables the entire mod (master switch).
/joinqueue pause Pauses the queue (players accumulate but are not released).
/joinqueue resume Resumes releasing players.
/joinqueue reload Reloads the configuration from config/joinqueue.json.
/joinqueue staff <add|remove> <player> Adds or removes a player from the Staff (bypass) list.
/joinqueue vip <add|remove> <player> Adds or removes a player from the VIP (fast-queue) list.
/joinqueue list <staff|vip> Lists all members of the Staff or VIP list.

Technical Details

  • Runs entirely in the Configuration Phase, before the player fully joins the world.
  • Uses ConcurrentLinkedDeque and AtomicInteger for thread-safe performance.
  • TPS is measured via a rolling 40-tick ring buffer using nanoTime.
  • Extends the server keep-alive timeout (15s → 2min) via a Mixin so queued players are never kicked while waiting.
  • Released players that never complete the join handshake are dropped after 15s so the line never stalls.
  • Compatible with Arclight/hybrid servers (chunk preloading is safely skipped there).
  • Required on both server and client.

The Joinqueue Team

profile avatar
  • 2
    Followers
  • 16
    Projects
  • 45.9K
    Downloads

More from epicskydexView all

  • Forgestone SMP project image

    Forgestone SMP

    • 1.2K
    • Modpacks

    Forgestone SMP! A public server featuring a massive 300+ modpack including Create & Aeronautics. Join builders and engineers to create giant factories, flying machines, and epic megabuilds. Forgestone awaits you!

    • 1.2K
    • May 13, 2026
    • Modpacks
    • +4
  • LagShield Ultimate (Anti Lag) project image

    LagShield Ultimate (Anti Lag)

    • 4.7K
    • Mods

    The intelligent performance modulator for Minecraft Server. LagShield Ultimate uses Arclight-safe async processing to dynamically regulate mob AI, chunk density, and entity speed based on real-time server stress (MSPT). Stops lag before it happens.

    • 4.7K
    • May 11, 2026
    • Mods
    • +1
  • Essentials Tweaks project image

    Essentials Tweaks

    • 1.0K
    • Mods

    Sets clean defaults for Essential — unbound keybinds, no Discord RPC, suppressed in-game notices.

    • 1.0K
    • May 4, 2026
    • Mods
  • Veinminer More  and Enchantments project image

    Veinminer More and Enchantments

    • 619
    • Mods

    Upgrade your mining with the Vein Miner Enchantment! Highlights connected ores and blocks in real-time before you swing. Should be balanced xD and performance-friendly. Stop guessing and start mining smarter!

    • 619
    • April 26, 2026
    • Mods
    • +2
  • Forgestone SMP project image

    Forgestone SMP

    • 1.2K
    • Modpacks

    Forgestone SMP! A public server featuring a massive 300+ modpack including Create & Aeronautics. Join builders and engineers to create giant factories, flying machines, and epic megabuilds. Forgestone awaits you!

    • 1.2K
    • May 13, 2026
    • Modpacks
    • +4
  • LagShield Ultimate (Anti Lag) project image

    LagShield Ultimate (Anti Lag)

    • 4.7K
    • Mods

    The intelligent performance modulator for Minecraft Server. LagShield Ultimate uses Arclight-safe async processing to dynamically regulate mob AI, chunk density, and entity speed based on real-time server stress (MSPT). Stops lag before it happens.

    • 4.7K
    • May 11, 2026
    • Mods
    • +1
  • Essentials Tweaks project image

    Essentials Tweaks

    • 1.0K
    • Mods

    Sets clean defaults for Essential — unbound keybinds, no Discord RPC, suppressed in-game notices.

    • 1.0K
    • May 4, 2026
    • Mods
  • Veinminer More  and Enchantments project image

    Veinminer More and Enchantments

    • 619
    • Mods

    Upgrade your mining with the Vein Miner Enchantment! Highlights connected ores and blocks in real-time before you swing. Should be balanced xD and performance-friendly. Stop guessing and start mining smarter!

    • 619
    • April 26, 2026
    • Mods
    • +2