SH

shaedyConnectionInfo

CS2 server plugin that shows player connection location via GeoIP

by shaedy18010counterstrikesharp
counter-strike-2counterstrikesharpcounterstrikesharp-plugincs2cs2-plugincs2-server

shaedy ConnectionInfo

A CounterStrikeSharp plugin that shows player connection info (country, city) using MaxMind GeoIP.

Features

  • Displays a player's country and city on connect and disconnect
  • Handles LAN/local connections gracefully with a separate message
  • Shows a personal welcome message to the connecting player
  • All messages are fully configurable via config

Requirements

  • MaxMind GeoLite2-City database (GeoLite2-City.mmdb) placed in the plugin directory

Installation

  1. Drop the plugin folder into your CounterStrikeSharp plugins directory
  2. Download the GeoLite2-City database and place GeoLite2-City.mmdb in the plugin folder

Configuration

The config is auto-generated on first run. Available fields:

Field Description Placeholders
connect_message Shown to all when a player joins {player}, {country}, {city}
connect_message_local Shown when GeoIP returns a local/LAN address {player}
connect_message_fallback Shown when GeoIP lookup fails {player}
disconnect_message Shown to all when a player leaves {player}
welcome_message Shown only to the connecting player {player}

Support

If you find a bug, have a feature request, or something isn't working as expected, feel free to open an issue. I'll take a look when I can.

Custom plugins are available on request, potentially for a small fee depending on scope. Reach out via an issue or at [email protected].

Note: These repos may not always be super active since most of my work happens in private repositories. But issues and requests are still welcome.

Donate

If you want to support my work: ko-fi.com/shaedy

shaedyConnectionInfo - CS2 Plugin | sourcemods.info