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
9f199b1a5a
commit
da390530e9
@ -57,6 +57,7 @@ public class AuthMePlayerListener implements Listener {
|
||||
* @param event AsyncPlayerChatEvent
|
||||
*/
|
||||
private void handleChat(AsyncPlayerChatEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
for (Player p : Utils.getOnlinePlayers()) {
|
||||
if (p != player && !PlayerCache.getInstance().isAuthenticated(p)) {
|
||||
event.getRecipients().remove(p);
|
||||
@ -67,7 +68,6 @@ public class AuthMePlayerListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
Player player = event.getPlayer();
|
||||
if (Utils.checkAuth(player)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user