Update StandardChannel.java

This commit is contained in:
Daniel V authored and GitHub committed 2019-06-13 00:15:50 -04:00
1 parent 88d8b1a55f
commit a44137c82e
1 file changed
+1 -1
@@ -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);