Installation
Requirements
Section titled “Requirements”- A Counter-Strike 2 dedicated server with Metamod:Source and CounterStrikeSharp.
This release is built against CounterStrikeSharp API
1.0.369and targets .NET 10.0, so use a CounterStrikeSharp build that runs .NET 10.0. - A database: SQLite works out of the box (the default, nothing to install). MySQL is optional and needed when several servers share one ban list. See Database.
- CS2MenuManager
1.0.42or newer for the menus. It is included in the release zip, you do not install it separately.
On load the plugin checks that these folders exist and unloads itself with an error in the console if one is missing:
addons/counterstrikesharp/plugins/CS2MenuManager_MenuManager/addons/counterstrikesharp/shared/CS2-SimpleAdminApi/
Install
Section titled “Install”-
Download
CS2-SimpleAdmin-1.9.6.zipfrom the latest release. -
Extract it into
game/csgo/addons/on the server. The zip contains onecounterstrikesharp/folder, so the files land here:addons/counterstrikesharp/plugins/CS2-SimpleAdmin/ the pluginplugins/CS2-SimpleAdmin_FunCommands/ fun commands module (noclip, god, freeze...)plugins/CS2-SimpleAdmin_StealthModule/ stealth module (hidden admins)plugins/CS2MenuManager_MenuManager/ menu library (runtime part)shared/CS2-SimpleAdminApi/ the API other plugins and modules useshared/CS2MenuManager/ menu library (shared part)Do not want the fun commands or the stealth module? Leave their folder out; the plugin works without them. Fun commands and stealth explains what they do.
-
In
addons/counterstrikesharp/configs/core.jsonset"UnlockConCommands": true. Without it the plugin logs a warning, and a kicked player who was just banned can rejoin for 60 seconds. -
Start (or restart) the server. The plugin creates its files:
addons/counterstrikesharp/configs/plugins/CS2-SimpleAdmin/CS2-SimpleAdmin.json settingsaddons/counterstrikesharp/configs/plugins/CS2-SimpleAdmin/Commands.json command aliasesaddons/counterstrikesharp/plugins/CS2-SimpleAdmin/cs2-simpleadmin.sqlite the database (SQLite)The database tables are created on the first start (MySQL too, once the connection is set).
-
Make yourself an admin. From the server console (or RCON):
css_addadmin 76561198000000000 YourName @css/root 100That is your SteamID64, a name, the flags (or
#group), and the immunity. Add a duration in minutes as a fifth argument for a temporary admin, and-gto make the admin global on every server that shares the database. The plugin reloads its admins right after adding one. -
In game, type
!adminto open the admin menu.
- Configuration: what to change in
CS2-SimpleAdmin.json. - Database: SQLite or MySQL, backups.
- Bans, mutes and warnings: how to use the penalty commands.
- Commands: every command, its flag and usage.
- Coming from daffyyyy’s version? See Switching from daffyyyy’s version.