mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 23:28:59 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user