UserManager

interface UserManager

The manager for users.

Functions

Link copied to clipboard
abstract fun getUser(uuid: UUID): User?

Gets the user with the given uuid, or returns null if there is no user with the given uuid, or this user is not loaded.

abstract fun getUser(name: String): User?

Gets the user with the given name, or returns null if there is no user with the given name, or this user is not loaded.

Link copied to clipboard
abstract fun loadUser(uuid: UUID): CompletableFuture<User?>

Gets the user with the given uuid, loading them from persistent storage if not already cached, or returns null if there is no user with the given uuid available.

abstract fun loadUser(name: String): CompletableFuture<User?>

Gets the user with the given name, loading them from persistent storage if not already cached, or returns null if there is no user with the given name available.