mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 01:27:35 +01:00
Remove possibility to hide chat, waiting for a fix
This commit is contained in:
parent
1fc6cdd40b
commit
25d125e483
@ -275,24 +275,6 @@ public class AuthMePlayerListener implements Listener {
|
||||
return;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user