Skip to content

Commit

Permalink
cleanup and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzSwirlz committed Sep 5, 2022
1 parent 41c56f3 commit 89338bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions servers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"": "buildtheearth.net",
"bte": "buildtheearth.net",
"ny": "minefact.de",
"nyc": "minefact.de",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 89338bd

Please sign in to comment.