General Configuration
Set up the CS2-SimpleAdmin plugin by configuring your MySQL database connection, managing player preferences, defining admin permissions, and customize.
Default configuration
{
"ConfigVersion": 20, // Do not touch
"DatabaseHost": "", // MySQL server host
"DatabasePort": 3306, // MySQL server port
"DatabaseUser": "", // MySQL database user
"DatabasePassword": "", // MySQL database user password
"DatabaseName": "", // MySQL database name
"OtherSettings": {
"ShowActivityType": 2, // Admin activity type: 0 - don't show, 1 - replace admin nickname to ADMIN, 2 - show admin nickname
"TeamSwitchType": 1, // css_team mode: 0 - always kill player, 1 - change team without kill
"KickTime": 5, // How long does a player have to learn about the penalty (seconds)
"BanType": 1, // Ban type: 0 - SteamID only, 1 - SteamID + IP
"TimeMode": 1, // Type of chat penalties: 0 - Time pass only when player online, 1 - Offline + online
"DisableDangerousCommands": true, // Disable for example css_ban @all
"MaxBanDuration": 10080, // Maximum ban time without @css/permban flag
"ExpireOldIpBans": 0, // Number of days after which ip bans are expired, 0 means never
"ReloadAdminsEveryMapChange": false, // Reload admins every map change
"DisconnectedPlayersHistoryCount": 10 // How many players save in css_disconnected
},
"EnableMetrics": true, // Sends information to my api server: server IP, name, online time
"EnableUpdateCheck": true, // Check if plugin is up-to date
"": "UTC", // Timezone for correct time handling
"WarnThreshold": { // List of warns limit "Warn number": "command to execute"
"998": "css_addban STEAMID64 60 \u00223/4 Warn\u0022",
"999": "css_ban #USERID 120 \u00224/4 Warn\u0022"
},
"MultiServerMode": true, // Are the penalties to be active on all servers or only on the current one
"Discord": { // Discord webhook settings
"DiscordLogWebhook": "", // Webhook for command logging
"DiscordPenaltyBanSettings": [ // Settings for ban info webhook
{
"name": "Color", // Embed color in hex
"value": ""
},
{
"name": "Webhook", // Webhook url
"value": ""
},
{
"name": "ThumbnailUrl", // Embed thumbnail
"value": ""
},
{
"name": "ImageUrl", // Embed image
"value": ""
},
{
"name": "Footer", // Embed footer
"value": ""
}
],
"DiscordPenaltyMuteSettings": [ // Settings for mute info webhook
{
"name": "Color", // Embed color in hex
"value": ""
},
{
"name": "Webhook", // Webhook url
"value": ""
},
{
"name": "ThumbnailUrl", // Embed thumbnail
"value": ""
},
{
"name": "ImageUrl", // Embed image
"value": ""
},
{
"name": "Footer", // Embed footer
"value": ""
}
],
"DiscordPenaltyGagSettings": [ // Settings for gag info webhook
{
"name": "Color", // Embed color in hex
"value": ""
},
{
"name": "Webhook", // Webhook url
"value": ""
},
{
"name": "ThumbnailUrl", // Embed thumbnail
"value": ""
},
{
"name": "ImageUrl", // Embed image
"value": ""
},
{
"name": "Footer", // Embed footer
"value": ""
}
],
"DiscordPenaltySilenceSettings": [ // Settings for silence info webhook
{
"name": "Color", // Embed color in hex
"value": ""
},
{
"name": "Webhook", // Webhook url
"value": ""
},
{
"name": "ThumbnailUrl", // Embed thumbnail
"value": ""
},
{
"name": "ImageUrl", // Embed image
"value": ""
},
{
"name": "Footer", // Embed footer
"value": ""
}
],
"DiscordPenaltyWarnSettings": [ // Settings for warn info webhook
{
"name": "Color", // Embed color in hex
"value": ""
},
{
"name": "Webhook", // Webhook url
"value": ""
},
{
"name": "ThumbnailUrl", // Embed thumbnail
"value": ""
},
{
"name": "ImageUrl", // Embed image
"value": ""
},
{
"name": "Footer", // Embed footer
"value": ""
}
]
},
"DefaultMaps": [], // Default Valve maps visible in admin map menu for example de_dust2
"WorkshopMaps": {}, // Workshop maps visible in admin map menu in format "map_name" : workshopId,
"": [],
"MenuConfig": { // Admin menu configuration
"Durations": [ // Penalty times
{
"name": "1 minute", // Name in menu
"duration": 1 // Penalty duration
},
{
"name": "5 minutes",
"duration": 5
},
{
"name": "15 minutes",
"duration": 15
},
{
"name": "1 hour",
"duration": 60
},
{
"name": "1 day",
"duration": 1440
},
{
"name": "7 days",
"duration": 10080
},
{
"name": "14 days",
"duration": 20160
},
{
"name": "30 days",
"duration": 43200
},
{
"name": "Permanent",
"duration": 0
}
],
"BanReasons": [ // Ban penalty reasons
"Hacking",
"Voice Abuse",
"Chat Abuse",
"Admin disrespect",
"Other"
],
"KickReasons": [ // Kick penalty reasons
"Voice Abuse",
"Chat Abuse",
"Admin disrespect",
"Other"
],
"WarnReasons": [ // Warn penalty reasons
"Voice Abuse",
"Chat Abuse",
"Admin disrespect",
"Other"
],
"MuteReasons": [ // Mute/Gag/Silence penalty reasons
"Advertising",
"Spamming",
"Spectator camera abuse",
"Hate",
"Admin disrespect",
"Other"
],
"AdminFlags": [ // Flags possible to assign in admin panel
{
"name": "Generic", // Name in menu
"flag": "@css/generic" // Flag
},
{
"name": "Chat",
"flag": "@css/chat"
},
{
"name": "Change Map",
"flag": "@css/changemap"
},
{
"name": "Slay",
"flag": "@css/slay"
},
{
"name": "Kick",
"flag": "@css/kick"
},
{
"name": "Ban",
"flag": "@css/ban"
},
{
"name": "Perm Ban",
"flag": "@css/permban"
},
{
"name": "Unban",
"flag": "@css/unban"
},
{
"name": "Show IP",
"flag": "@css/showip"
},
{
"name": "Cvar",
"flag": "@css/cvar"
},
{
"name": "Rcon",
"flag": "@css/rcon"
},
{
"name": "Root (all flags)",
"flag": "@css/root"
}
]
}
}
List of time zones
CustomServerCommands Example
"CustomServerCommands": [
{ "Flag": "@css/root", "DisplayName": "Reload Admins", "Command": "css_admins_reload" },
{ "Flag": "@css/cheat", "DisplayName": "Enable sv_cheats", "Command": "sv_cheats 1" }
],
Last updated