Module core.plugins.queue.sv_init
Spawn Queue
Module Overview
Functions
| joinqueue.precacheadmins() | Function to populate joinqueue.admins with administrators. |
| joinqueue.isAdmin(sid) | Function to check if a given steam id belongs to an administrator. |
| joinqueue.checkqueue(name, pass, sid, ip) | Function called by join queue auth. |
| joinqueue.place(sid) | Get a SteamID's place in the queue. |
| joinqueue.list() | Send a message to administrators with the current join queue order. |
| joinqueue.remove(sid) | Remove a SteamID from the queue. |
| joinqueue.add(sid) | Add a steamid to the queue. |
| joinqueue.SaveDisconnected(name, steamid, id, reason) | Try saving a player to the disconnected player's queue. |
| joinqueue.spamcheck(sid) | Run spamchecks for the player. |
| pairsByKeys(t, f) | Return a iterator function, sorted by keys. |
Tables
| joinqueue | The main joinqueue table. |
| joinqueue.queue | The current queue members. |
| joinqueue.queueorder | The order of the queue. |
| joinqueue.discplayers | List of recently disconnected players. |
| joinqueue.admins | List of admins. |
| joinqueue.spamblock | List of players blocked for spamming join. |
| joinqueue.spamchecklog | List of players being chuecked for spamming. |
Fields
| joinqueue.queueid | Current queue ID. |
| joinqueue.pqueueid | Current priority (recent DC) queue ID. |
- joinqueue.precacheadmins()
- Function to populate joinqueue.admins with administrators.
- joinqueue.isAdmin(sid)
-
Function to check if a given steam id belongs to an administrator.
Parameters:
- sid The steamID to check.
Returns:
-
boolean If the steamID belongs to an administrator.
- joinqueue.checkqueue(name, pass, sid, ip)
-
Function called by join queue auth.
Ignores administrators, allowing bypass.
Parameters:
- name The player's name.
- pass Password given by the client.
- sid The player's SteamID.
- ip The player's IP address.
Returns:
-
nil|string If nil, no action taken. If string, the failure message to pass to the client.
- joinqueue.place(sid)
-
Get a SteamID's place in the queue.
Parameters:
- sid The steamID to check.
Returns:
-
integer The player's place in the queue.
- joinqueue.list()
- Send a message to administrators with the current join queue order.
- joinqueue.remove(sid)
-
Remove a SteamID from the queue.
Parameters:
- sid The steamID to remove.
- joinqueue.add(sid)
-
Add a steamid to the queue.
Parameters:
- sid The steamID to add.
- joinqueue.SaveDisconnected(name, steamid, id, reason)
-
Try saving a player to the disconnected player's queue.
If player was kicked, this won't work.
Parameters:
- name The player's name.
- steamid SteamID of the player.
- id Network ID.
- reason Reason for the leave.
- joinqueue.spamcheck(sid)
-
Run spamchecks for the player.
Parameters:
- sid SteamID to check.
Returns:
- If the player has been blocked.
- If the block is newly enforced.
- pairsByKeys(t, f)
-
Return a iterator function, sorted by keys.
Parameters:
- t Table to iterate.
- f Function to sort keys by.
- joinqueue
- The main joinqueue table.
- joinqueue.queue
- The current queue members.
- joinqueue.queueorder
- The order of the queue.
- joinqueue.discplayers
- List of recently disconnected players.
- joinqueue.admins
- List of admins.
- joinqueue.spamblock
- List of players blocked for spamming join.
- joinqueue.spamchecklog
- List of players being chuecked for spamming.