Interface UserManager


  • @NonExtendable
    public interface UserManager
    User manager.
    • Method Detail

      • getConsole

        @NotNull
        @NotNull ConsoleUser getConsole()
        Get a user representing the platform console.
        Returns:
        console user.
      • getUsers

        @NotNull
        @NotNull Collection<User> getUsers()
        Get all online users.
        Returns:
        all online users.
      • getUserById

        @NotNull
        @NotNull Optional<User> getUserById​(@NotNull
                                            @NotNull UUID id)
        Attempt to get a user with the given id.
        Parameters:
        id - The user's unique id.
        Returns:
        an optional containing the user if found, otherwise an empty optional.