[SPIGOT-7864] Multiple players joining at once bypasses player limit Created: 09/Aug/24  Updated: 25/Dec/24

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: LaserSlime Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: joining, max-players
Environment:

Windows 10

Java 21


Version: This server is running CraftBukkit version 4290-Spigot-5a6439b-b95736b (MC: 1.21.1) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

If the player count is one below the maximum and 2 players join at once, they are both let in and won't get kicked, resulting in there being more players online than the maximum allowed.

To reproduce:

  1. Set up a fresh server and set "max-players" in server.properties to 2. (Note: In my testing I also set "offline-mode" to false since I don't have 3 accounts)
  2. Boot up 3 seperate accounts.
  3. Join with one of them
  4. Now you have to quickly join with the other 2 accounts. To best reproduce this I recommend to use a tool like clumsy and set your ping to 100ms. Alternatively you can try to join with all 3 accounts at once to increase the chance of it happening.
  5. Now there are 3 players on a server with a player limit of 2

This does not work in vanilla.


Generated at Sat Apr 05 10:22:32 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.