General Configuration
Set up the CS2-SimpleAdmin plugin by configuring your MySQL database connection, managing player preferences, defining admin permissions, and customize.
Last updated
Set up the CS2-SimpleAdmin plugin by configuring your MySQL database connection, managing player preferences, defining admin permissions, and customize.
Last updated
{
"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"
}
]
}
}
UTC
Pacific/Niue
Pacific/Pago_Pago
Pacific/Midway
Pacific/Rarotonga
Pacific/Tahiti
Pacific/Honolulu
America/Adak
Pacific/Marquesas
Pacific/Gambier
America/Yakutat
America/Metlakatla
America/Anchorage
America/Sitka
America/Nome
America/Juneau
Pacific/Pitcairn
America/Los_Angeles
America/Tijuana
America/Vancouver
America/Dawson
America/Whitehorse
America/Dawson_Creek
America/Creston
America/Inuvik
America/Phoenix
America/Yellowknife
America/Boise
America/Mazatlan
America/Fort_Nelson
America/Cambridge_Bay
America/Hermosillo
America/Ojinaga
America/Edmonton
America/Denver
America/Chihuahua
Pacific/Easter
Pacific/Galapagos
America/Managua
America/Guatemala
America/Tegucigalpa
America/Swift_Current
America/Regina
America/Rankin_Inlet
America/Resolute
America/Rainy_River
America/Winnipeg
America/Monterrey
America/Belize
America/El_Salvador
America/Costa_Rica
America/Merida
America/Matamoros
America/Mexico_City
America/Chicago
America/Bahia_Banderas
America/Indiana/Tell_City
America/North_Dakota/Beulah
America/North_Dakota/New_Salem
America/North_Dakota/Center
America/Menominee
America/Indiana/Knox
America/Guayaquil
America/Lima
America/Bogota
America/Eirunepe
America/Rio_Branco
America/Havana
America/New_York
America/Detroit
America/Toronto
America/Nipigon
America/Indiana/Vevay
America/Iqaluit
America/Pangnirtung
America/Atikokan
America/Panama
America/Port-au-Prince
America/Grand_Turk
America/Thunder_Bay
America/Kentucky/Louisville
America/Kentucky/Monticello
America/Indiana/Indianapolis
America/Indiana/Petersburg
America/Indiana/Winamac
America/Indiana/Vincennes
America/Cancun
America/Jamaica
America/Cayman
America/Indiana/Marengo
America/Nassau
America/Santiago
America/Cuiaba
America/Campo_Grande
America/Porto_Velho
America/Boa_Vista
America/Guyana
America/La_Paz
America/Manaus
America/Asuncion
America/Caracas
America/St_Kitts
America/Grenada
America/Dominica
America/St_Lucia
America/Curacao
America/Port_of_Spain
America/Lower_Princes
America/Santo_Domingo
America/Puerto_Rico
America/Glace_Bay
America/Goose_Bay
America/St_Thomas
America/Tortola
America/Antigua
America/Anguilla
America/Martinique
America/St_Vincent
America/Montserrat
America/Blanc-Sablon
America/Marigot
America/Aruba
America/Barbados
America/St_Barthelemy
Atlantic/Bermuda
America/Kralendijk
America/Guadeloupe
America/Moncton
America/Thule
America/Halifax
America/St_Johns
America/Belem
Antarctica/Rothera
Antarctica/Palmer
America/Paramaribo
America/Miquelon
Atlantic/Stanley
America/Sao_Paulo
America/Argentina/Buenos_Aires
America/Santarem
America/Cayenne
America/Godthab
America/Bahia
America/Argentina/Cordoba
America/Montevideo
America/Argentina/Jujuy
America/Fortaleza
America/Recife
America/Punta_Arenas
America/Araguaina
America/Argentina/Ushuaia
America/Argentina/Salta
America/Argentina/Rio_Gallegos
America/Argentina/San_Luis
America/Argentina/Tucuman
America/Argentina/San_Juan
America/Argentina/Mendoza
America/Argentina/Catamarca
America/Maceio
America/Argentina/La_Rioja
America/Noronha
Atlantic/South_Georgia
Atlantic/Cape_Verde
America/Scoresbysund
Atlantic/Azores
Antarctica/Troll
Africa/Nouakchott
Europe/Jersey
Europe/Isle_of_Man
Atlantic/Reykjavik
Africa/Monrovia
Africa/Bissau
Atlantic/St_Helena
Africa/Bamako
Africa/Banjul
Africa/Sao_Tome
Africa/Lome
Africa/Dakar
Africa/Freetown
Africa/Abidjan
Africa/Ouagadougou
Europe/London
Africa/Conakry
Europe/Guernsey
America/Danmarkshavn
Africa/Accra
Atlantic/Faroe
Atlantic/Madeira
Europe/Lisbon
Atlantic/Canary
Africa/Casablanca
Africa/El_Aaiun
Europe/Podgorica
Europe/Amsterdam
Europe/Tirane
Europe/Berlin
Europe/Prague
Africa/Tunis
Europe/Vienna
Europe/Skopje
Europe/Malta
Europe/Zurich
Europe/Oslo
Europe/Brussels
Europe/Luxembourg
Europe/Sarajevo
Europe/Monaco
Europe/Vatican
Europe/Vaduz
Europe/Busingen
Africa/Algiers
Europe/Gibraltar
Europe/Stockholm
Europe/Ljubljana
Europe/Zagreb
Europe/Budapest
Europe/Belgrade
Europe/Paris
Europe/Copenhagen
Arctic/Longyearbyen
Europe/Bratislava
Europe/Andorra
Europe/Rome
Africa/Ceuta
Europe/Madrid
Europe/Warsaw
Europe/San_Marino
Europe/Dublin
Africa/Malabo
Africa/Luanda
Africa/Lagos
Africa/Niamey
Africa/Libreville
Africa/Ndjamena
Africa/Porto-Novo
Africa/Kinshasa
Africa/Bangui
Africa/Brazzaville
Africa/Douala
Africa/Kigali
Africa/Windhoek
Africa/Khartoum
Africa/Maputo
Africa/Blantyre
Africa/Harare
Africa/Bujumbura
Africa/Gaborone
Africa/Lusaka
Africa/Lubumbashi
Europe/Sofia
Europe/Helsinki
Europe/Mariehamn
Asia/Gaza
Europe/Uzhgorod
Africa/Cairo
Europe/Tallinn
Asia/Damascus
Europe/Kaliningrad
Europe/Athens
Asia/Beirut
Asia/Famagusta
Europe/Zaporozhye
Europe/Vilnius
Europe/Riga
Europe/Kiev
Africa/Tripoli
Europe/Bucharest
Europe/Chisinau
Asia/Amman
Asia/Hebron
Asia/Nicosia
Asia/Jerusalem
Africa/Maseru
Africa/Mbabane
Africa/Johannesburg
Europe/Kirov
Asia/Bahrain
Antarctica/Syowa
Asia/Riyadh
Asia/Qatar
Asia/Baghdad
Europe/Minsk
Asia/Kuwait
Europe/Istanbul
Asia/Aden
Africa/Mogadishu
Africa/Juba
Africa/Asmara
Africa/Djibouti
Africa/Nairobi
Indian/Antananarivo
Indian/Mayotte
Africa/Kampala
Africa/Dar_es_Salaam
Indian/Comoro
Africa/Addis_Ababa
Europe/Simferopol
Europe/Moscow
Asia/Tehran
Asia/Baku
Europe/Samara
Asia/Dubai
Indian/Mauritius
Asia/Tbilisi
Indian/Reunion
Asia/Yerevan
Europe/Ulyanovsk
Europe/Saratov
Indian/Mahe
Europe/Volgograd
Asia/Muscat
Europe/Astrakhan
Asia/Kabul
Asia/Samarkand
Indian/Kerguelen
Asia/Dushanbe
Asia/Oral
Asia/Qyzylorda
Asia/Atyrau
Asia/Aqtau
Asia/Tashkent
Asia/Ashgabat
Indian/Maldives
Asia/Aqtobe
Antarctica/Mawson
Asia/Yekaterinburg
Asia/Karachi
Asia/Colombo
Asia/Kolkata
Asia/Kathmandu
Asia/Bishkek
Asia/Urumqi
Indian/Chagos
Asia/Dhaka
Asia/Omsk
Asia/Almaty
Asia/Qostanay
Asia/Thimphu
Antarctica/Vostok
Asia/Yangon
Indian/Cocos
Asia/Ho_Chi_Minh
Asia/Hovd
Asia/Phnom_Penh
Asia/Vientiane
Asia/Tomsk
Antarctica/Davis
Asia/Bangkok
Asia/Novosibirsk
Asia/Barnaul
Asia/Krasnoyarsk
Indian/Christmas
Asia/Novokuznetsk
Asia/Pontianak
Asia/Jakarta
Asia/Choibalsan
Antarctica/Casey
Asia/Kuching
Asia/Kuala_Lumpur
Asia/Irkutsk
Asia/Ulaanbaatar
Asia/Brunei
Asia/Singapore
Australia/Perth
Asia/Taipei
Asia/Macau
Asia/Shanghai
Asia/Hong_Kong
Asia/Manila
Asia/Makassar
Australia/Eucla
Asia/Chita
Pacific/Palau
Asia/Yakutsk
Asia/Khandyga
Asia/Dili
Asia/Tokyo
Asia/Seoul
Asia/Pyongyang
Asia/Jayapura
Australia/Darwin
Australia/Broken_Hill
Australia/Adelaide
Antarctica/DumontDUrville
Pacific/Port_Moresby
Pacific/Chuuk
Asia/Ust-Nera
Asia/Vladivostok
Australia/Hobart
Australia/Melbourne
Australia/Sydney
Australia/Brisbane
Australia/Lindeman
Australia/Currie
Pacific/Guam
Pacific/Saipan
Australia/Lord_Howe
Asia/Sakhalin
Asia/Srednekolymsk
Pacific/Norfolk
Pacific/Guadalcanal
Pacific/Kosrae
Pacific/Pohnpei
Pacific/Efate
Asia/Magadan
Antarctica/Macquarie
Pacific/Bougainville
Pacific/Noumea
Pacific/Majuro
Pacific/Wallis
Pacific/Kwajalein
Pacific/Nauru
Asia/Anadyr
Pacific/Tarawa
Pacific/Funafuti
Asia/Kamchatka
Pacific/Fiji
Pacific/Wake
Antarctica/McMurdo
Pacific/Auckland
Pacific/Chatham
Pacific/Apia
Pacific/Fakaofo
Pacific/Enderbury
Pacific/Tongatapu
Pacific/Kiritimati
"CustomServerCommands": [
{ "Flag": "@css/root", "DisplayName": "Reload Admins", "Command": "css_admins_reload" },
{ "Flag": "@css/cheat", "DisplayName": "Enable sv_cheats", "Command": "sv_cheats 1" }
],