Remove possibility to hide chat, waiting for a fix

This commit is contained in:
Xephi 2014-09-14 23:20:03 +02:00
parent 1fc6cdd40b
commit 25d125e483

View File

@ -275,24 +275,6 @@ public class AuthMePlayerListener implements Listener {
return; return;
if (PlayerCache.getInstance().isAuthenticated(name)) { if (PlayerCache.getInstance().isAuthenticated(name)) {
if (!event.isAsynchronous()) {
if (!Settings.isChatAllowed)
for (Player p : event.getRecipients()) {
if (!PlayerCache.getInstance().isAuthenticated(p.getName()))
event.getRecipients().remove(p);
}
} else {
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable(){
@Override
public void run() {
if (!Settings.isChatAllowed)
for (Player p : event.getRecipients()) {
if (!PlayerCache.getInstance().isAuthenticated(p.getName()))
event.getRecipients().remove(p);
}
}
});
}
return; return;
} }