mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2024-12-31 20:02:12 +00:00
Async chat thread call fix
This commit is contained in:
parent
5dd22e771e
commit
0006946ba2
1 changed files with 1 additions and 1 deletions
|
@ -44,8 +44,8 @@ public class PlayerChatHook extends BukkitRunnable implements Listener {
|
|||
for (PlayerChatHookData hook : hooks) {
|
||||
if (hook.getPlayerUUID().equals(event.getPlayer().getUniqueId())) {
|
||||
event.setCancelled(true);
|
||||
hook.triggerCallback(event.getMessage());
|
||||
hooks.remove(hook);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(PlayerParticles.getPlugin(), () -> hook.triggerCallback(event.getMessage()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue