Skip to content

CountryFilter Plugin

Filters players by country using GeoIP lookup. Supports allowlist and blocklist modes.

Plugin name: countryfilterRequires config: Yes

Behavior

  • Looks up connecting player's country by IP address
  • In blocklist mode: kicks players from listed countries
  • In allowlist mode: kicks players NOT from listed countries

Settings

toml
[[plugins]]
name = "countryfilter"
enabled = true

[plugins.settings]
mode = "blocklist"
countries = ["XX", "YY"]
kick_message = "Your country is not allowed on this server."
SettingTypeDefaultDescription
modestring"blocklist""allowlist" or "blocklist"
countriesarray[]ISO 3166-1 alpha-2 country codes
kick_messagestringSee aboveMessage shown when kicking

Events

EVT_CLIENT_CONNECT

Released under the GPL-2.0 License.