Granting administrator rights allows you easy and comprehensive management with full control over your server. As an admin, you can use all available options and features the game offers directly in-game. All the steps you need to take to assign administrator rights for your server are described below.
To use administrator rights, a foundation must first be established. By default, CS2 does not offer comprehensive admin management. However, there are frameworks for this, such as CounterStrikeSharp. The framework must be installed for configuration. If you haven’t installed it yet, feel free to check out our Installing Plugins guide.
Adding an admin is done via the configuration file admins.json, which you can find under ../cs2/game/csgo/addons/CounterStrikeSharp/addons/configs/. To declare a new admin, you must create a new entry. This must include a name, an identity, and flags (permissions). You can choose the name freely as it only serves as a placeholder/identifier. For the identity, the SteamID of the Steam account must be specified. Additionally, the flags must be defined as needed.
{
"User 1": {
"identity": "76561198808392634",
"flags": ["@css/changemap", "@css/generic"]
},
"User 2": {
"identity": "STEAM_0:1:1",
"flags": ["@css/generic"]
}
}
You can also define admin groups. This way, the permissions of an admin can be set via the corresponding group. This means permissions do not have to be configured individually for each admin. The groups are defined in the configuration file admin_groups.json, which you can find under ../cs2/game/csgo/addons/CounterStrikeSharp/addons/configs/.
"#css/simple-admin": {
"flags": [
"@css/generic",
"@css/reservation",
"@css/ban",
"@css/slay"
]
}
Admins can be assigned an immunity value. If an admin or player with a lower immunity value attacks another admin or player with a higher immunity value, the command fails. You can define an immunity value by adding the key immunity to each admin in configs/admins.json.
{
"ZoNiCaL": {
"identity": "76561198808392634",
"flags": ["@css/changemap", "@css/generic"],
"immunity": 100
}
}
The immunity check is not automatically performed by CounterStrikeSharp. It is up to the individual plugins to handle/manage the immunity check.
