Skip to content

Commit

Permalink
Changed everything to getIp insteat of getIP, works now http://prntsc…
Browse files Browse the repository at this point in the history
  • Loading branch information
janwil committed Feb 28, 2015
1 parent c8bc031 commit 44a1ffa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/laytonsmith/abstraction/MCServer.java
Expand Up @@ -57,7 +57,7 @@ public interface MCServer extends AbstractionObject{
public String getModVersion();
public String getVersion();
public int getPort();
public String getIP();
public String getIp();
public Boolean getAllowEnd();
public Boolean getAllowFlight();
public Boolean getAllowNether();
Expand Down
Expand Up @@ -288,8 +288,8 @@ public int getPort() {
}

@Override
public String getIP() {
return s.getIP();
public String getIp() {
return s.getIp();
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/laytonsmith/core/functions/Minecraft.java
Expand Up @@ -801,7 +801,7 @@ public String docs() {
+ "Max player limit; returns the player limit.</li><li>8 - Operators; An array of operators on the server.</li>"
+ "<li>9 - Plugins; An array of plugins loaded by the server.</li>"
+ "<li>10 - Online Mode; If true, users are authenticated with Mojang before login</li>"
+ "<li>11 - Server port; Get the game port that the server runs on</li></ul>";
+ "<li>11 - Server port; Get the game port that the server runs on</li></ul>"
+ "<li>12 - Server IP; Get the IP that the server runs on</li></ul>";
}

Expand Down Expand Up @@ -914,8 +914,8 @@ public Construct exec(Target t, Environment env, Construct... args) throws Cance
retVals.add(new CInt(server.getPort(), t));
}
if (index == 12 || index == -1) {
//Server IP
retVals.add(new CString(server.getIP(), t));
//Server Ip
retVals.add(new CString(server.getIp(), t));
}

if (retVals.size() == 1) {
Expand Down

0 comments on commit 44a1ffa

Please sign in to comment.