Switching from daffyyyy's version
This fork continues daffyyyy/CS2-SimpleAdmin, which is no longer maintained. It split off at upstream 1.7.9a. Your database, config, admins and penalties carry over; the main change is the menu library.
What carries over
Section titled “What carries over”- Database: the schema is the same, migrations are tracked in the same
sa_migrationstable, and the fork runs only what is missing, on MySQL and SQLite alike. Bans, comm penalties, warnings, admins and groups stay. - Config:
CS2-SimpleAdmin.jsonis compatible (sameConfigVersion, no renamed or removed keys). New options, such asSqliteBackupRetainCount, use their defaults until you add them. - Command aliases:
Commands.jsonis kept; new commands likecss_sqlbackup,css_clearallandcss_historyare added to it automatically. - Modules: the API is unchanged (namespace
CS2_SimpleAdminApi, capabilitysimpleadmin:api), so modules written against upstream keep working.
What changes
Section titled “What changes”- Menus use CS2MenuManager, bundled in the
release zip, instead of NickFox’s MenuManager. The plugin no longer needs
MenuManagerCore,PlayerSettings,MenuManagerApi,PlayerSettingsApiorAnyBaseLib. - Menu style per player is now chosen with
!menutype. Choices players made in the old PlayerSettings are not carried over. - .NET: the fork targets .NET 10, so CounterStrikeSharp must be a build that runs .NET 10.
- Update check (
EnableUpdateCheck) now compares against this fork’s releases. - No statistics call: upstream’s
EnableMetricssent the server’s address and hostname toapi.daffyy.devon every start. The fork removed it; the key can stay in your config, it is ignored. - Unused config key:
Discord.DiscordAssociatedAccountsSettingswas never read and is gone; it is ignored if still in your file.
- Back up the database:
mysqldumpfor MySQL, or copycs2-simpleadmin.sqlitetogether with its-waland-shmfiles while the server is stopped. - Stop the server.
- Delete
addons/counterstrikesharp/plugins/CS2-SimpleAdmin/andaddons/counterstrikesharp/shared/CS2-SimpleAdminApi/. Keep the SQLite file aside if you use SQLite. Configs underconfigs/plugins/stay where they are. - Remove the old menu dependencies if no other plugin of yours uses them:
plugins/MenuManagerCore/,plugins/PlayerSettings/,shared/MenuManagerApi/,shared/PlayerSettingsApi/andshared/AnyBaseLib/. - Install the fork as in Installation, and put the SQLite file
back into
plugins/CS2-SimpleAdmin/. - Start the server and watch the console: the missing migrations run, then the plugin loads its admins.
Worth checking afterwards
Section titled “Worth checking afterwards”- Modules that used NickFox’s MenuManager directly, not through the SimpleAdmin API, need that library themselves or an update to CS2MenuManager.
- On MySQL, migration 018 adds the indexes upstream’s migration 016 left commented out. On a large database the first start after updating can take a little longer while they are built.