Update 3.3.3

This commit is contained in:
Xephi
2014-02-20 12:54:10 +01:00
parent 5a089fa690
commit 4e7e9e6cb4
21 changed files with 315 additions and 127 deletions
+9 -1
View File
@@ -98,7 +98,9 @@ public class PlayerAuth {
}
public String getIp() {
return ip;
if (ip == null || ip.isEmpty())
ip = "127.0.0.1";
return ip;
}
public String getNickname() {
@@ -145,6 +147,12 @@ public class PlayerAuth {
this.z = d;
}
public long getLastLogin() {
try {
if (Long.valueOf(lastLogin) == null)
lastLogin = 0L;
} catch (NullPointerException e) {
lastLogin = 0L;
}
return lastLogin;
}