From da390530e9866b9afd1aa724eb959257e2c1a2b6 Mon Sep 17 00:00:00 2001 From: DNx Date: Wed, 25 Nov 2015 05:05:41 +0700 Subject: [PATCH] Update AuthMePlayerListener.java --- .../java/fr/xephi/authme/listener/AuthMePlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java index 5fb464f4a..563f332e2 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java @@ -57,6 +57,7 @@ public class AuthMePlayerListener implements Listener { * @param event AsyncPlayerChatEvent */ private void handleChat(AsyncPlayerChatEvent event) { + Player player = event.getPlayer(); for (Player p : Utils.getOnlinePlayers()) { if (p != player && !PlayerCache.getInstance().isAuthenticated(p)) { event.getRecipients().remove(p); @@ -67,7 +68,6 @@ public class AuthMePlayerListener implements Listener { return; } - Player player = event.getPlayer(); if (Utils.checkAuth(player)) { return; }