From d5c2e3ccb667b846c65abd46d1aeaedc21221f9c Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 1 May 2019 18:46:18 +1000 Subject: [PATCH] SPIGOT-4714: Broadcasts can no longer be done from secondary threads --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 8f9814263b..a6ce369cd3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1263,7 +1263,7 @@ public final class CraftServer implements Server { } } - BroadcastMessageEvent broadcastMessageEvent = new BroadcastMessageEvent(message, recipients); + BroadcastMessageEvent broadcastMessageEvent = new BroadcastMessageEvent(!Bukkit.isPrimaryThread(), message, recipients); getPluginManager().callEvent(broadcastMessageEvent); if (broadcastMessageEvent.isCancelled()) {