Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 13:30:06 +01:00
05e889f346
This change affects the old chat compatibility layer from an implementation only standpoint. It does not queue the 'event' to fire, but rather queues a runnable that allows the calling thread to wait for execution to finish. The other effect of this change is that rcon connects now have their commands queued to be run on next server tick using the same implementation. The internal implementation is in org.bukkit.craftbukkit.util.Waitable. It is very similar to a Future<T> task, but only contains minimal implementation with object.wait() and object.notify() calls under the hood of waitable.get() and waitable.run(). PlayerPreLoginEvent now properly implements thread-safe event execution by queuing the events similar to chat and rcon. This is still a poor way albeit proper way to implement thread-safety; PlayerPreLoginEvent will stay deprecated. |
||
---|---|---|
.. | ||
block | ||
command | ||
conversations | ||
enchantments | ||
entity | ||
event | ||
generator | ||
help | ||
inventory | ||
map | ||
metadata | ||
potion | ||
scheduler | ||
updater | ||
util | ||
ChunkCompressionThread.java | ||
CraftArt.java | ||
CraftChunk.java | ||
CraftChunkSnapshot.java | ||
CraftCrashReport.java | ||
CraftEffect.java | ||
CraftOfflinePlayer.java | ||
CraftServer.java | ||
CraftSound.java | ||
CraftWorld.java | ||
LoggerOutputStream.java | ||
Main.java | ||
PortalTravelAgent.java | ||
TextWrapper.java | ||
TrigMath.java |