Update 3.3.3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ public class LimboCache {
|
||||
gameMode = GameMode.SURVIVAL;
|
||||
}
|
||||
if(player.isDead()) {
|
||||
loc = plugin.getSpawnLocation(player.getWorld());
|
||||
loc = plugin.getSpawnLocation(player.getName().toLowerCase(), player.getWorld());
|
||||
}
|
||||
cache.put(player.getName().toLowerCase(), new LimboPlayer(name, loc, inv, arm, gameMode, operator, playerGroup, flying));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user