Added geoip support.

(grab the database from http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz and dump it in the tshock folder)
This commit is contained in:
Deathmax 2011-09-02 12:28:19 +08:00
parent 3f40437d4b
commit 9ed5f7a2f5
5 changed files with 276 additions and 1 deletions

View file

@ -184,6 +184,9 @@ namespace TShockAPI
[Description("This is kick players who have custom items in their inventory (via a mod)")]
public bool KickCustomItems = false;
[Description("This will announce a player's location on join")]
public bool EnableGeoIP = false;
public static ConfigFile Read(string path)
{
if (!File.Exists(path))