Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
geoip.cf -> geoip.pw
  • Loading branch information
UnknownShadow200 committed Apr 29, 2018
1 parent b5d9426 commit 730e41e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fCraft/Commands/InfoCommands.cs
Expand Up @@ -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 {
Expand All @@ -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;
Expand All @@ -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 + ")");
Expand All @@ -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;
}
Expand Down

0 comments on commit 730e41e

Please sign in to comment.