Country Filter
- Author: xlr8or
- B3: 1.1.0+
This plugin provides an allow/deny mechanism for connecting players based on their Country-IP (GeoIP data). It announces connecting players in the server so you can see where the player is connecting from. Even if you don't have anny countries on the deny list, it's still nice to see where your playercrowd is connecting from!
- !cfcountry <player> will return the country the player is connecting from.
Installation
1. Unzip the contents of this package into your B3 folder. It will place the .py file in b3/extplugins and the config file .xml in your b3/extplugins/conf folder. It will create a subfolder called GeoIP with a python library and GeoIP data.
2. Open the .xml file with your favorit editor and modify the settings if you want them different. Do not edit the settingnames for they will not function under a different name.
3. Open your B3.xml file (in b3/conf) and add the next line in the <plugins> section of the file:
<plugin name="countryfilter" priority="12" config="@b3/extplugins/conf/countryfilter.xml"/>
The numer 12 in this just an example. Make sure it fits your plugin list.
Updating the Geo-data
Download GeoIP.dat from http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz and extract it into b3/extplugins/GeoIP/
Discussion and support
Downloads
- Download repository for released xlr8or plugins: http://ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/
- Latest development snapshot here (may be unstable): .zip .gz
Source Code / Participate
For this plugin a Mercurial repository is available at Twente University. To check out the source tree:
hg clone http://xlr8or.snt.utwente.nl/hg/countryfilter/ countryfilter
ToDo
- Automated downloading/updating of GeoIp.dat
