mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
Update StandardChannel.java
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user