mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 04:35:12 +01:00
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);
|
||||
if (onlinePlayer != null) {
|
||||
if (onlinePlayer != null && onlinePlayer.isOnline()) {
|
||||
throw new FailedVerificationException(MessageKey.USERNAME_ALREADY_ONLINE_ERROR);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user