mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-07 10:57:45 +02:00
Need to verify auth exist before get it
This commit is contained in:
parent
469a56258d
commit
3a2e58d18a
@ -389,8 +389,8 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
// Little workaround to be sure registered player is the same as this
|
// Little workaround to be sure registered player is the same as this
|
||||||
if (player.hasPlayedBefore())
|
if (player.hasPlayedBefore())
|
||||||
// Make sure it's the correct player
|
// Make sure it's the correct player
|
||||||
if (data.getAuth(lowname).getIp().equalsIgnoreCase(player.getAddress().getAddress().getHostAddress()))
|
|
||||||
if (data.isAuthAvailable(lowname))
|
if (data.isAuthAvailable(lowname))
|
||||||
|
if (data.getAuth(lowname).getIp().equalsIgnoreCase(player.getAddress().getAddress().getHostAddress()))
|
||||||
data.updateName(lowname, name);
|
data.updateName(lowname, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user