Skip to content

NockyCZ/CS2-ReservedSlots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reseved Slots is a CS2 plugin that is used to reserve slots for VIP players or Admins.
Designed for CounterStrikeSharp framework

Discord Support Server

Installation

  1. Download the lastest release https://github.com/NockyCZ/CS2-ReservedSlots/releases/latest
    • ReservedSlots.zip file is a version that does not support Discord Utilities
    • ReservedSlots_DU_Support.zip file is a version that supports Discord Utilities (You can combine flags and discord roles)
  2. Unzip into your servers csgo/addons/counterstrikesharp/plugins/ dir
  3. Restart the server

Dependencies

Configuration

configs/plugins/ReservedSlots/ReservedSlots.json

What it does
Reserved Slots Plugin version that does not support Discord Utilities
Reserved Flags • List of Flags for reserved slot
- Cannot be empty!
Reserved Admin Flags • List of Flags for admin reserved slot
- When a player with an Admin reserved slot joins, no one is kicked
- Can be empty
Reserved Slots (With Discord Utilities Support) Plugin version that supports Discord Utilities
Reserved Flags and Roles • List of Flags and Discord Roles for reserved slot
- You can combine roles and flags (If a player does not have a role, his flags will be checked)
- Cannot be empty!
Reserved Admin Flags and Roles • List of Flags and Discord Roles for admin reserved slot
- When a player with an Admin reserved slot joins, no one is kicked
- You can combine roles and flags (If a player does not have a role, his flags will be checked)
- Can be empty!


What it does
Reserved Slots How many slots will be reserved if the reserved slots method is 1 or 2
Reserved Slots Method 0 - There will always be one slot open. For example, if your maxplayers is set to 10, the server can have a maximum of 9 players. If a 10th player joins with a Reservation flag/role, it will kick a player based on the Kick type. If the 10th player doesn't have a reservation flag/role, they will be kicked
1 - Maintains the number of available slots according to the reservation slots setting, allowing only players with a Reservation flag/role to join. For example, if you have maxplayers set to 10 and Reserved slots set to 3, when there are 7/10 players on the server, additional players can only join if they have a Reservation flag/role. If they don't, they will be kicked. If the server is already full and a player with a Reservation flag/role attempts to join, it will kick a player based on the Kick type
2 - It works the same way as in method 2, except players with a Reservation flag/role are not counted towards the total player count. For example, if there are 7/10 players on the server, and Reserved slots are set to 3. Out of those 7 players, two players have a Reservation flag/role. The plugin will then consider that there are 5 players on the server, allowing two more players without a Reservation flag/role to connect. If the server is already full and a player with a Reservation flag/role attempts to join, it will kick a player based on the Kick type
Leave One Slot Open Works only if reserved slots method is set to 1 or 2. If set to true, there will always be one slot open. (true or false)
Kick Immunity Type Who will be immune to the kick?
0 - Players with a Reserved flag/role or an Admin reserved flag/role
1 - Only players with a Reserved flag/role
2 - Only players with an Admin reserved flag/role
Kick Reason Reason for the kick (Use the number from NetworkDisconnectionReason)
Kick Delay This means that the player will be kicked after a certain time (seconds) (value less than 1 means the player will be kicked immediately)
Kick Check Method When a player will be selected for kick when a player with a Reserved flag/role joins??
0 - When a player with a Reserved flag/role joins
1 - When a player with a Reserved flag/role choose a team
Kick Type How is a players selected to be kicked?
0 - Players will be kicked randomly
1 - Players will be kicked by highest ping
2 - Players will be kicked by highest score
3 - Players will be kicked by lowest score
Kick Players In Spectate Kick players who are in spectate first? (true or false)
Log Kicked Players (true or false)
Display Kicked Players Message Who will see the message when a player is kicked due to a reserved slot
0 - None
1 - All players
2 - Only Admins with the @css/generic flag