Add a check

This commit is contained in:
Xephi 2014-10-09 23:21:33 +02:00
parent 8fecbe3f3c
commit 59273ab1c1

View File

@ -388,7 +388,7 @@ public class AuthMePlayerListener implements Listener {
if (!lowname.equals(name)) {
// Little workaround to be sure registered player is the same as this
if (player.hasPlayedBefore())
if (player.hasPlayedBefore() && !player.isOnline())
// Make sure it's the correct player
if (data.isAuthAvailable(lowname))
if (data.getAuth(lowname).getIp().equalsIgnoreCase(player.getAddress().getAddress().getHostAddress()))