Simple CounterStrikeSharp plugin that replaces connect/disconnect messages and resolves city/country data with GeoLite2-City.mmdb.
Copy the complete ConnectAnnounce folder from the release zip to:
csgo/addons/counterstrikesharp/plugins/ConnectAnnounce/
Do not upload only ConnectAnnounce.dll. ConnectAnnounce.deps.json must stay next to the DLL or CounterStrikeSharp cannot resolve the plugin dependencies.
The release zip includes GeoLite2-City.mmdb, so it can be installed directly. To update the database later, download it from one of these links and replace the file in the plugin folder:
- https://git.io/GeoLite2-City.mmdb
- https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb
csgo/addons/counterstrikesharp/plugins/ConnectAnnounce/GeoLite2-City.mmdb
ConnectAnnounce.dllConnectAnnounce.deps.jsonMaxMind.GeoIP2dependenciesdata/cannounce_settings.txtGeoLite2-City.mmdb
The options JSON is generated on load at:
csgo/addons/counterstrikesharp/configs/plugins/ConnectAnnounce/ConnectAnnounceConfig.json
Default messages live in:
ConnectAnnounce/data/cannounce_settings.txt
Available placeholders:
{PLAYERNAME}{STEAMID}{PLAYERCOUNTRY}{PLAYERCOUNTRYSHORT}{PLAYERCOUNTRYSHORT3}{PLAYERCITY}{PLAYERREGION}{PLAYERIP}{PLAYERTYPE}{DISC_REASON_LABEL}{DISC_REASON}
Configurable colors are stored in ConnectAnnounceConfig.json:
{
"PlayerNameColor": "Purple",
"SteamIdColor": "Default",
"LocationColor": "Green",
"PlayerIpColor": "Default",
"PlayerTypeColor": "Default",
"DisconnectReasonLabelColor": "Green",
"DisconnectReasonColor": "Green"
}Valid CSSSharp color names: Default, White, DarkRed, Green, LightYellow, LightBlue, Olive, Lime, Red, LightPurple, Purple, Grey, Yellow, Gold, Silver, Blue, DarkBlue, BlueGrey, Magenta, LightRed, Orange.
css_geolist <target>css_ca_reload