Interface UserManager


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

      • getConsole

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

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

        @NotNull
        @NotNull Optional<? extends User> getUserById​(@NotNull
                                                      @NotNull UUID id)
        Returns a user with the given identifier.
        Parameters:
        id - Unique ID of the user to retrieve.
        Returns:
        an optional containing the user, if found, otherwise an empty optional.