mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Fix inf loop when sending messages to command blocks on Bukkit (#2702)
This commit is contained in:
parent
00d4a2a1da
commit
9f8b4b2404
@ -69,7 +69,7 @@ public class BukkitSenderFactory extends SenderFactory<LPBukkitPlugin, CommandSe
|
|||||||
if (sender instanceof Player || sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender) {
|
if (sender instanceof Player || sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender) {
|
||||||
this.audiences.sender(sender).sendMessage(message);
|
this.audiences.sender(sender).sendMessage(message);
|
||||||
} else {
|
} else {
|
||||||
getPlugin().getBootstrap().getScheduler().executeSync(() -> sendMessage(sender, message));
|
getPlugin().getBootstrap().getScheduler().executeSync(() -> this.audiences.sender(sender).sendMessage(message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user