Interface UserManager


public interface UserManager
Represents the object responsible for managing User instances.

Note that User instances are automatically loaded for online players. It's likely that offline players will not have an instance pre-loaded.

All blocking methods return CompletableFutures, which will be populated with the result once the data has been loaded/saved asynchronously. Care should be taken when using such methods to ensure that the main server thread is not blocked.

Methods such as CompletableFuture.get() and equivalent should not be called on the main server thread. If you need to use the result of these operations on the main server thread, register a callback using CompletableFuture.thenAcceptAsync(Consumer, Executor).