#Joining Queue

1 messages · Page 1 of 1 (latest)

grizzled storm
#

This plugin allows players to join a full server and wait in a queue until a slot becomes available.

Source: https://github.com/reversum/QueueSystem
Download: https://github.com/reversum/QueueSystem/releases/tag/LabAPI

Config:

# Whether the plugin is enabled.
is_enabled: true
# Enable debug logs.
debug: false
queue_hint_message: >-
  <align="center"><color=orange><size=25>⚠️ The Server is Full! ⚠️</size></color>

  <color=#A9A9A9><size=23>But don’t worry! You are waiting in a queue!</size></color>

  <color=#DCDCDC><size=21>Players waiting:</color> <color=#ADFF2F>{queue_count}</size></color>


  <size=20>Your position in the queue: <color=#00FF00>#{position}</color></size>


  <size=18>Round time <color=#2F4F4F>»</color> <color=#C0C0C0>{round_time} elapsed</color>
queue_leave_hint_message: <color=green>You will now join!</color>
# Priority order of queue groups. Higher in the list = higher priority.
queue_group_priority:
- moderator
- owner
# Allows NW Staff to always skip the queue.
allow_n_w_staff_to_skip_queue: true
# Allows people with a ReservedSlot to always skip the queue.
skip_with_reserved_slot: true
# Subtract the number of people online with reserved slots so that players can still join.
subtract_reserved_slots: false
GitHub

Contribute to reversum/QueueSystem development by creating an account on GitHub.

copper raptor
#

Are there any side effects from this on a server?
E.g. unauthenticated players showing up in the player list?

grizzled storm
#

the player will not be "Ready". And the player will be added to the Collection of the Player List after the authentication.

copper raptor
#

Baller

#

Very cool

unique schooner
#

I mean

#

They can join even the server is full

grizzled storm
unique schooner
unique schooner
unique schooner
#

Sorry it's late here

grizzled storm
#

yeah 0:36 for me SteamHappy

unique schooner
#

For me too xd

stable heart
#

Idk if its entirely possible, but would it be possible to add a placeholder for the server name? like %playersInQueue% ?

stable heart
#

awesome

grizzled storm
#

@unique schooner all ur wishes are now in the plugin.

stable heart
#

believe i found a bug

#

only one player can be in queue because it tries to assign the same player id

#

and the game shits itself

#
[2025-07-30 01:50:10.035 +00:00] Player 7...@steam preauthenticated from endpoint x.x.x.x:63133.
[2025-07-30 01:50:13.976 +00:00] [STDOUT] ArgumentException: An item with the same key has already been added. Key: ReferenceHub (Name='Player [connId=34]', NetID='3857', PlayerID='18')
[2025-07-30 01:50:13.976 +00:00] [STDOUT]   at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <069d7b80a3914a08b6825aa362b07f5e>:0
[2025-07-30 01:50:13.976 +00:00] [STDOUT]   at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <069d7b80a3914a08b6825aa362b07f5e>:0
[2025-07-30 01:50:13.976 +00:00] [STDOUT]   at LabApi.Features.Wrappers.Player..ctor (ReferenceHub referenceHub) [0x0000b] in <ed207da941d64f12942f0c5cc79632fc>:0
[2025-07-30 01:50:13.977 +00:00] [STDOUT]   at LabApi.Features.Wrappers.Player.AddPlayer (ReferenceHub referenceHub) [0x00008] in <ed207da941d64f12942f0c5cc79632fc>:0
[2025-07-30 01:50:13.977 +00:00] [STDOUT]   at (wrapper delegate-invoke) System.Action`1[ReferenceHub].invoke_void_T(ReferenceHub)
[2025-07-30 01:50:13.977 +00:00] [STDOUT]   at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.ReferenceHub.Start_Patch2(ReferenceHub)```
unique schooner
copper raptor
#

No need to spend your time diagnosing it

stable heart
#

soo basically no queue

#

is that what im taking from this

grizzled storm
#

Ah Yes you Said the Game shits

stable heart
grizzled storm
#

I mean test it does it happen everytime?

stable heart
#

Over multiple rounds restarts

#

I cam do some tests but it'll take a little

grizzled storm
#

Okay. I will test some stuff

#

But if its really basegame we are fucked

#

When exactly is this error happening?

#

If the Server is Full and someone is joining?

stable heart
#

apologies for flickering, on a linux laptop with intel graphics lol. issue happens whenever atleast one person joins queue

#

here is the full console log for when the issue occurs, from first join in that vid to after second attempt.
(its my ip and steamid under a vpn so ill be fine)

grizzled storm
stable heart
#

ofc ofc lol

grizzled storm
#

also are u using version v1 or v1.1

stable heart
#

1.1

#

spinning up a empty test server other than this plugin rq

#

issue does persist

grizzled storm
#

Im absolutly confused. I dont have a single error in my console like you.

stable heart
#

Thats strange...

grizzled storm
#

check dms

grizzled storm
stable heart
#

added benefit of cmod not shitting itself

grizzled storm
unique schooner
grizzled storm
stable heart
#

just thought of this @grizzled storm
can verification staff bypass queue?

grizzled storm
grizzled storm
quiet pollen
unique schooner
# grizzled storm should be working

Also that would be cool function if a player wants to join a full server but there's player's with reserved slot or bypass then it allows it to join, because now I have to leave and join back to let players join to the server

grizzled storm
unique schooner
grizzled storm
unique schooner
#

Thanks!

native drum
#

So cool

grizzled storm
# unique schooner Thanks!

i didnt made a new update for it but yeah here it is:

# Allows people with a ReservedSlot to always skip the queue.
skip_with_reserved_slot: true
# Subtract the number of people online with reserved slots so that players can still join.
subtract_reserved_slots: false

You need to set it on true standard wise its on false.

https://github.com/reversum/QueueSystem/releases/tag/LabAPI-Pluginv1.3

GitHub

added AllowNWStaffToSkipQueue bool to the Config.

grizzled storm
#

if you have any other ideas just let me know

unique schooner
timber cape
grizzled storm
timber cape
grizzled storm
#

works also. just use dummies.

grizzled storm
grizzled storm
#

Im currently working on the next version and yeah.

Need feedback if i should really add this option 🐍

unique schooner
#

That would be cool

copper raptor
#

So they're not authenticated, but they're able to play snake?

copper raptor
#

That's fucked up

#

Hypothetically, could you give them like noclip and let them observe the round, or is the map empty to them?

stable heart
#

I believe cedmod would make this impossible

#

As it despawns players out of virw

#

View

copper raptor
#

Holy shit

grizzled storm
copper raptor
#

That is so tuff

grizzled storm
#

need to patch them out of the spec list and make them invisible

grizzled storm
#

i mean maybe i could fake their role for others as none

#

but yeah

stable heart
#

ik cedmod does the same, where it shows players out of range as film maker

grizzled storm
scenic sorrel
#

Hey @grizzled storm! I'm having an issue where me and my mods are unable to skip the queue despite having the option enabled for reserved slots in the configs.

My theory is that it isn't working because we exclusively use CedMod to handle groups, permissions, and reserved slots. I think what happens is that CedMod does not detect anyone in the queue and only once they have joined the server "properly". Which means that they technically don't have a reserved slot according to the server until first after they have went through the queue, at which point it's naturally too late.

Do you know if your plugin is compatible in this way with CedMod? Or is there something else that's causing queue skipping to not work for us?

zinc prism
#

together with kellog here; our current assumption is that cedmod does not give players their roles until they are authenticated, and the queue delays authentication

#

i'll take a look at the codebase and then perhaps we could dig deeper

stable heart
copper raptor
#

Because they'd be kicked before they could be authenticated because the server is full

scenic sorrel
#

@grizzled storm

copper raptor
scenic sorrel
stable heart
scenic sorrel
#

Yes okay

stable heart
#

not in the reserved slots file either

#

just cedmod

grizzled storm
#

I really need more user statements

#

Maybe I will setup cedmod for testing

#

Maybe

copper raptor
#

And have reserved slots been working on your server outside of this plugin?

#

And do you have the config set up correctly for both?

scenic sorrel
#

reserved slots work fine otherwise without the plugin

scenic sorrel
copper raptor
#

I'll see if later I can't install all the plugins you have on my local host and try to reproduce the issue

scenic sorrel
#

I’ll look into it more on my end

#

@zinc prism @void wraith Have a look at this

stable heart
#

ignore the discord role SteamHappy

copper raptor
scenic sorrel
modern sand
grizzled storm
modern sand
grizzled storm
grizzled storm
#

Personally, I'm just not a fan of CedMod. Not at all. But if the majority here wants it, I'll implement it.

modern sand
grizzled storm
modern sand
#

it would work, but your solution is better than mine

grizzled storm
modern sand
grizzled storm
#

oopsie done.

copper raptor
stable heart
#

Well time to test on a vanilla server hold on

stable heart
stable heart
#

oh shit i know why it worked previously
before we switched to cedmod 8 months ago all of the server staff/patrons had their id's in the reserved slots folder, and would ya know it they are still in there

#

including me :D

grizzled storm
#

Well now it works too for cedmod

stable heart
#

coolzies

scenic sorrel
#

Because then I'd like to give the plugin another try

scenic sorrel
#

The plugin still does not work after testing it @grizzled storm
The cedmod fix has not solved the problem

#

In fact it has come with a bug now instead which has lowered the servers capacity from 30 to 28 by putting you in queue on 28 players out of 30 or higher despite subtracting slots being set to false

#

subtract slots is turned OFF in this case

is_enabled: true
# Enable debug logs.
debug: false
queue_hint_message: >-
  <align="center"><color=orange><size=25>:warning: The Server is Full! :warning:</size></color>

  <color=#A9A9A9><size=23>But don’t worry! You are waiting in a queue!</size></color>

  <color=#DCDCDC><size=21>Players waiting:</color> <color=#ADFF2F>{queue_count}</size></color>


  <size=20>Your position in the queue: <color=#00FF00>#{position}</color></size>


  <size=18>Round time <color=#2F4F4F>»</color> <color=#C0C0C0>{round_time} elapsed</color>
queue_leave_hint_message: <color=green>You will now join!</color>
# Priority order of queue groups. Higher in the list = higher priority.
queue_group_priority:
- moderator
- owner
# Allows NW Staff to always skip the queue.
allow_n_w_staff_to_skip_queue: true
# Allows people with a ReservedSlot to always skip the queue.
skip_with_reserved_slot: true
# Subtract the number of people online with reserved slots so that players can still join.
subtract_reserved_slots: false```
stable heart
scenic sorrel
stable heart
#

Soo again, its likely a different plugin issue.

scenic sorrel
cold dragon
unique schooner
#

@grizzled storm Can this plugin be Transparent

cold dragon
#

imma change

cold dragon
analog shadow
#

ä

cold dragon
analog shadow
cold dragon
#

aa

foggy garden
#

hi i just want ask
how to reference private var

rich sparrow
#

Or reflection

cursive monolith
stable heart
#

if this plugin is still in support you should make the queue work post-auth instead of pre-auth so tokens dont expire 🙏
also cmod whitelists dont work again

cursive monolith
grizzled storm
cursive monolith
#

Bro
I wasn’t even talking to you.

grizzled storm
#

Maybe don't take everything as an attack... I wanted to tell you to keep going and feel free to continue working on the plugin here. I would also have liked to give you GitHub Contributor or the repo.