Update AuthMePlayerListener.java

This commit is contained in:
DNx 2015-11-25 05:05:41 +07:00
parent 9f199b1a5a
commit da390530e9

View File

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