AlexProgrammerDE / PistonQueue

Best queue plugin out there!
https://www.spigotmc.org/resources/83541/
Apache License 2.0
63 stars 18 forks source link

Suggestion: Check if there are any empty slots before trying to log in the user #133

Closed Plexi09 closed 7 months ago

Plexi09 commented 7 months ago

If there is one improvement I could make to the Piston Queue plugin, it would unquestionably involve its approach to logging users into the server. Rather than attempting to log them in every second, a more user-friendly solution would be to periodically check for available slots on the main server, perhaps every ten seconds or so. Upon detecting an open slot, the plugin could then proceed to log the user in. This approach would not only enhance user experience by reducing unnecessary login attempts but also prevent console spamming.

In game: image

Console log:

[22:49:49 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:49 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:54883): Server is full!
[22:49:49 INFO]: Plexi09 (/*IP ADDRESS*:54883) lost connection: Server is full!
[22:49:50 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:50 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:54543): Server is full!
[22:49:50 INFO]: Plexi09 (/*IP ADDRESS*:54543) lost connection: Server is full!
[22:49:51 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:51 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:33431): Server is full!
[22:49:51 INFO]: Plexi09 (/*IP ADDRESS*:33431) lost connection: Server is full!
[22:49:52 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:52 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:54669): Server is full!
[22:49:52 INFO]: Plexi09 (/*IP ADDRESS*:54669) lost connection: Server is full!
[22:49:53 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:53 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:48563): Server is full!
[22:49:53 INFO]: Plexi09 (/*IP ADDRESS*:48563) lost connection: Server is full!
[22:49:54 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:54 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:34581): Server is full!
[22:49:54 INFO]: Plexi09 (/*IP ADDRESS*:34581) lost connection: Server is full!
[22:49:55 INFO]: UUID of player Plexi09 is 29b16b8a-c2df-44da-8d22-0adfdeb00c56
[22:49:55 INFO]: Disconnecting Plexi09 (/*IP ADDRESS*:50319): Server is full!
Plexi09 commented 7 months ago

It could also display your position in queue every time it changes