Check if the player is online #831

This commit is contained in:
Gabriele C 2016-08-02 14:34:20 +02:00
parent 1b9c23e52d
commit fbabeb9261

View File

@ -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);
}
}