geforkt von Mirrors/Paper
SPIGOT-4714: Broadcasts can no longer be done from secondary threads
Dieser Commit ist enthalten in:
Ursprung
deeecc7f08
Commit
d5c2e3ccb6
@ -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);
|
getPluginManager().callEvent(broadcastMessageEvent);
|
||||||
|
|
||||||
if (broadcastMessageEvent.isCancelled()) {
|
if (broadcastMessageEvent.isCancelled()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren