mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +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);
|
event.getRecipients().addAll(recipients);
|
||||||
|
|
||||||
if (isHooked()) {
|
if (isHooked()) {
|
||||||
AsyncChatHookEvent hookEvent = new AsyncChatHookEvent(event, this);
|
AsyncChatHookEvent hookEvent = new AsyncChatHookEvent(event, this, !Bukkit.getServer().isPrimaryThread());
|
||||||
Bukkit.getServer().getPluginManager().callEvent(hookEvent);
|
Bukkit.getServer().getPluginManager().callEvent(hookEvent);
|
||||||
if (hookEvent.isCancelled()) {
|
if (hookEvent.isCancelled()) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|||||||
Reference in new issue
Block a user