From fbabeb92618d2a7043f23eab1cbaf091afeced0d Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Tue, 2 Aug 2016 14:34:20 +0200 Subject: [PATCH] Check if the player is online #831 --- src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java b/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java index 50ee67b2f..98ff87607 100644 --- a/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java +++ b/src/main/java/fr/xephi/authme/listener/OnJoinVerifier.java @@ -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); } }