mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-22 16:31:55 +01:00
SPIGOT-4714: Broadcasts can no longer be done from secondary threads
By: md_5 <git@md-5.net>
This commit is contained in:
parent
e5cb6d7c49
commit
a70a255937
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue