WorldOperationQueue
Manages world operations (cloning, loading, unloading) in a queue to prevent concurrent operations that can cause server crashes or performance issues.
Functions
Link copied to clipboard
Gets the current queue size.
Link copied to clipboard
public static void queueOperation(Player player, Supplier<Boolean> asyncOperation, Runnable syncOperation, String operationName)
Queues a world operation for execution.
public static void queueOperation(Player player, Supplier<Boolean> asyncOperation, Runnable syncOperation, String operationName, Runnable terminalCallback)
Queues a world operation.