Check if the player is online #831
This commit is contained in:
parent
1b9c23e52d
commit
fbabeb9261
@ -184,7 +184,7 @@ class OnJoinVerifier implements Reloadable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Player onlinePlayer = bukkitService.getPlayerExact(name);
|
Player onlinePlayer = bukkitService.getPlayerExact(name);
|
||||||
if (onlinePlayer != null) {
|
if (onlinePlayer != null && onlinePlayer.isOnline()) {
|
||||||
throw new FailedVerificationException(MessageKey.USERNAME_ALREADY_ONLINE_ERROR);
|
throw new FailedVerificationException(MessageKey.USERNAME_ALREADY_ONLINE_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user