mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 15:47:38 +01:00
Whoops forgot to commit this #719
This commit is contained in:
parent
e0ef0e40c7
commit
dd5fb49065
@ -139,9 +139,12 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
if (shouldCancelEvent(player)) {
|
if (shouldCancelEvent(player)) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
// TODO: a spambot calls this too often, too many threads checking if auth is available.
|
bukkitService.runTaskAsynchronously(new Runnable() {
|
||||||
// Possible solution: add a cooldown. -sgdc3
|
@Override
|
||||||
// sendLoginOrRegisterMessage(player);
|
public void run() {
|
||||||
|
m.send(player, MessageKey.DENIED_CHAT_MESSAGE);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else if (settings.getProperty(RestrictionSettings.HIDE_CHAT)) {
|
} else if (settings.getProperty(RestrictionSettings.HIDE_CHAT)) {
|
||||||
Set<Player> recipients = event.getRecipients();
|
Set<Player> recipients = event.getRecipients();
|
||||||
Iterator<Player> iter = recipients.iterator();
|
Iterator<Player> iter = recipients.iterator();
|
||||||
|
Loading…
Reference in New Issue
Block a user