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