mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-23 17:17:36 +01:00
Update AuthMePlayerListener.java
This commit is contained in:
parent
a983253384
commit
9f199b1a5a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user