> For the complete documentation index, see [llms.txt](https://docs.sourcefactory.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sourcefactory.eu/cs2-plugins/reserved-slots.md).

# Reserved Slots

{% hint style="info" %}
This plugin allows players with a specific permission flag to connect even when the server is full, based on your configuration settings.

Designed for [CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp/) framework.
{% endhint %}

### Installation

1. Download the lastest release <https://github.com/NockyCZ/CS2-ReservedSlots/releases/latest>
2. Unzip into your servers `csgo/addons/counterstrikesharp/plugins/ReservedSlots/` dir

### Configuration

{% hint style="warning" %} <mark style="color:green;">**`configs/plugins/ReservedSlots/ReservedSlots.json`**</mark>
{% endhint %}

<table data-header-hidden><thead><tr><th width="238">Property</th><th>What it does</th></tr></thead><tbody><tr><td><strong>Flag for reserved slots</strong></td><td>Reservation flag (Leave blank for disable this option)</td></tr><tr><td><strong>Admin flag for reserved slots</strong></td><td>Reservation flag for Admins. When a player with an Admin reserved flag joins, no one is kicked (Leave blank for disable this option)</td></tr><tr><td><strong>Kick immunity type</strong></td><td>Who will be immune to the kick?</td></tr><tr><td></td><td><code>0</code> - Players with a Reserved flag or an Admin reserved flag</td></tr><tr><td></td><td><code>1</code> - Only players with a Reserved flag</td></tr><tr><td></td><td><code>2</code> - Only players with an Admin reserved flag</td></tr><tr><td><strong>Reserved slots</strong></td><td>How many slots will be reserved if the reserved slots method is 1 or 2</td></tr><tr><td><strong>Reserved slots method</strong></td><td><code>0</code> - 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, it will kick a player based on the Kick type. If the 10th player doesn't have a reservation flag, they will be kicked</td></tr><tr><td></td><td><code>1</code> - Maintains the number of available slots according to the reservation slots setting, allowing only players with a Reservation flag 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. If they don't, they will be kicked. If the server is already full and a player with a Reservation flag attempts to join, it will kick a player based on the Kick type</td></tr><tr><td></td><td><code>2</code> - It works the same way as in method 2, except players with a Reservation flag 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. The plugin will then consider that there are 5 players on the server, allowing two more players without a Reservation flag to connect. If the server is already full and a player with a Reservation flag attempts to join, it will kick a player based on the Kick type</td></tr><tr><td><strong>Leave one slot open</strong></td><td>Works only if reserved slots method is set to 1 or 2. If set to <code>true</code>, there will always be one slot open. (<mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark>)</td></tr><tr><td><strong>Kick Delay</strong></td><td><p>This means that the player will be kicked after a certain time (<mark style="color:blue;"><code>seconds</code></mark>) </p><p>Value less than 1 means the player will be kicked immediately)</p></td></tr><tr><td><strong>Kick Check Method</strong></td><td>When a player will be selected for kick when a player with a Reserved flag joins??</td></tr><tr><td></td><td><mark style="color:blue;"><code>0</code></mark> - When a player with a Reserved flag joins</td></tr><tr><td></td><td><mark style="color:blue;"><code>1</code></mark> - When a player with a Reserved flag choose a team</td></tr><tr><td><strong>Kick type</strong></td><td>How is a players selected to be kicked?</td></tr><tr><td></td><td><mark style="color:blue;"><code>0</code></mark> - Players will be kicked randomly</td></tr><tr><td></td><td><mark style="color:blue;"><code>1</code></mark> - Players will be kicked by highest ping</td></tr><tr><td></td><td><mark style="color:blue;"><code>2</code></mark> - Players will be kicked by highest score</td></tr><tr><td></td><td><mark style="color:blue;"><code>3</code></mark> - Players will be kicked by lowest score</td></tr><tr><td><strong>Kick players in spectate</strong></td><td>Kick players who are in spectate first? (<mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark>)</td></tr><tr><td><strong>Log kicked players</strong></td><td>(<mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark>)</td></tr><tr><td><strong>Display kicked players message</strong></td><td>Who will see the message when a player is kicked due to a reserved slot</td></tr><tr><td></td><td><mark style="color:blue;"><code>0</code></mark> - None</td></tr><tr><td></td><td><mark style="color:blue;"><code>1</code></mark> - All players</td></tr><tr><td></td><td><mark style="color:blue;"><code>2</code></mark> - Only Admins with the <code>@css/generic</code> flag</td></tr></tbody></table>

1.
