Skip to content
Permalink
Browse files

geoip.cf -> geoip.pw

  • Loading branch information...
UnknownShadow200 committed Apr 29, 2018
1 parent b5d9426 commit 730e41eda8b81b289c964a923defb3247f1e54fb
Showing with 4 additions and 4 deletions.
  1. +4 −4 fCraft/Commands/InfoCommands.cs
@@ -1811,7 +1811,7 @@ static void EmotesHandler(Player player, CommandReader cmd)
player.Message(" Time Zone: &f{0}", info.TimeZone ?? "N/A");
player.Message(" Hostname: &f{0}", info.Hostname ?? "N/A");
player.Message(" Accuracy: &f{0}", info.Accuracy);
player.Message("Geoip information by: &9http://geoip.cf/");
player.Message("Geoip information by: &9http://geoip.pw/");
}

static readonly CommandDescriptor CdGeoipNp = new CommandDescriptor {
@@ -1837,7 +1837,7 @@ static void EmotesHandler(Player player, CommandReader cmd)
}
JsonObject result = null;
try {
result = JsonObject.Parse(Server.downloadDatastring("http://geoip.cf/api/" + ip));
result = JsonObject.Parse(Server.downloadDatastring("http://geoip.pw/api/" + ip));
if (result.Get("message") != null) {
player.Message("No information found!");
return;
@@ -1853,7 +1853,7 @@ static void EmotesHandler(Player player, CommandReader cmd)
byte.TryParse(result.Get("accuracy"), out acc);
player.Message(" Hostname: &f{0}", result.Get("host") ?? "N/A");
player.Message(" Accuracy: &f{0}", acc);
player.Message("Geoip information by: &9http://geoip.cf/");
player.Message("Geoip information by: &9http://geoip.pw/");

} catch (Exception ex) {
Logger.Log(LogType.Warning, "Could not access GeoIP website (Ex: " + ex + ")");
@@ -1870,7 +1870,7 @@ static void EmotesHandler(Player player, CommandReader cmd)
}
JsonObject result = null;
try {
result = JsonObject.Parse(Server.downloadDatastring("http://geoip.cf/api/" + ip));
result = JsonObject.Parse(Server.downloadDatastring("http://geoip.pw/api/" + ip));
if (result.Get("message") != null) {
return;
}

0 comments on commit 730e41e

Please sign in to comment.
You can’t perform that action at this time.