mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 15:17:56 +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
|
* @param event AsyncPlayerChatEvent
|
||||||
*/
|
*/
|
||||||
private void handleChat(AsyncPlayerChatEvent event) {
|
private void handleChat(AsyncPlayerChatEvent event) {
|
||||||
|
for (Player p : Utils.getOnlinePlayers()) {
|
||||||
|
if (p != player && !PlayerCache.getInstance().isAuthenticated(p)) {
|
||||||
|
event.getRecipients().remove(p);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Settings.isChatAllowed) {
|
if (Settings.isChatAllowed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user