diff --git a/servers.json b/servers.json index 8644102..9545588 100644 --- a/servers.json +++ b/servers.json @@ -1,4 +1,5 @@ { + "": "buildtheearth.net", "bte": "buildtheearth.net", "ny": "minefact.de", "nyc": "minefact.de", diff --git a/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTECommand.java b/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTECommand.java index 4fc7672..9af308f 100644 --- a/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTECommand.java +++ b/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTECommand.java @@ -26,9 +26,9 @@ public class BTECommand extends CommandBase { // Alias's for the server names people can go by // This shows in the tab public String[] acceptableIps = { - "bte", - "ny", - "nyc", + "bte", + "ny", + "nyc", "germany", "nj", "southwest_us", diff --git a/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTEServerIPGetter.java b/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTEServerIPGetter.java index 7d87ea9..0fa24b7 100644 --- a/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTEServerIPGetter.java +++ b/src/main/java/com/github/ItzSwirlz/BTELocationSwitcher/BTEServerIPGetter.java @@ -28,18 +28,11 @@ public static String getIp(String serverAlias) throws MalformedURLException, IOE JSONObject obj = (JSONObject) o; - // sanity checks on our server alias - if(serverAlias.length() == 0) { - serverAlias = "bte"; - } - + // Sanity check switch(serverAlias) { case "": serverAlias = "bte"; break; - default: - serverAlias = "bte"; - break; } // Get our server IP!