mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-18 22:57:47 +01:00
Add a check
This commit is contained in:
parent
8fecbe3f3c
commit
59273ab1c1
@ -388,7 +388,7 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
|
|
||||||
if (!lowname.equals(name)) {
|
if (!lowname.equals(name)) {
|
||||||
// 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() && !player.isOnline())
|
||||||
// Make sure it's the correct player
|
// Make sure it's the correct player
|
||||||
if (data.isAuthAvailable(lowname))
|
if (data.isAuthAvailable(lowname))
|
||||||
if (data.getAuth(lowname).getIp().equalsIgnoreCase(player.getAddress().getAddress().getHostAddress()))
|
if (data.getAuth(lowname).getIp().equalsIgnoreCase(player.getAddress().getAddress().getHostAddress()))
|
||||||
|
Loading…
Reference in New Issue
Block a user