This commit is contained in:
DNx 2015-11-25 05:10:13 +07:00
parent da390530e9
commit be1eb9392a

View File

@ -59,7 +59,7 @@ public class AuthMePlayerListener implements Listener {
private void handleChat(AsyncPlayerChatEvent event) {
Player player = event.getPlayer();
for (Player p : Utils.getOnlinePlayers()) {
if (p != player && !PlayerCache.getInstance().isAuthenticated(p)) {
if (p != player && !PlayerCache.getInstance().isAuthenticated(p.getName())) {
event.getRecipients().remove(p);
}
}