Update AuthMePlayerListener.java

This commit is contained in:
DNx 2015-11-25 05:04:38 +07:00
parent a983253384
commit 9f199b1a5a

View File

@ -57,6 +57,12 @@ public class AuthMePlayerListener implements Listener {
* @param event AsyncPlayerChatEvent
*/
private void handleChat(AsyncPlayerChatEvent event) {
for (Player p : Utils.getOnlinePlayers()) {
if (p != player && !PlayerCache.getInstance().isAuthenticated(p)) {
event.getRecipients().remove(p);
}
}
if (Settings.isChatAllowed) {
return;
}