From a44137c82e73af44637824bb75ce8734f4861de6 Mon Sep 17 00:00:00 2001 From: Daniel V Date: Thu, 13 Jun 2019 00:15:50 -0400 Subject: [PATCH] Update StandardChannel.java --- .../palmergames/bukkit/TownyChat/channels/StandardChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java index 27d2901..24ed6eb 100644 --- a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java +++ b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java @@ -122,7 +122,7 @@ public class StandardChannel extends Channel { event.getRecipients().addAll(recipients); if (isHooked()) { - AsyncChatHookEvent hookEvent = new AsyncChatHookEvent(event, this); + AsyncChatHookEvent hookEvent = new AsyncChatHookEvent(event, this, !Bukkit.getServer().isPrimaryThread()); Bukkit.getServer().getPluginManager().callEvent(hookEvent); if (hookEvent.isCancelled()) { event.setCancelled(true);