Fix inf loop when sending messages to command blocks on Bukkit (#2702)

This commit is contained in:
Luck 2020-11-10 16:17:23 +00:00
parent 00d4a2a1da
commit 9f8b4b2404
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -69,7 +69,7 @@ public class BukkitSenderFactory extends SenderFactory<LPBukkitPlugin, CommandSe
if (sender instanceof Player || sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender) {
this.audiences.sender(sender).sendMessage(message);
} else {
getPlugin().getBootstrap().getScheduler().executeSync(() -> sendMessage(sender, message));
getPlugin().getBootstrap().getScheduler().executeSync(() -> this.audiences.sender(sender).sendMessage(message));
}
}