Interface MemberHolder


public interface MemberHolder
Represents an entity that has an owner and a list of trusted players.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull UUID
    Get the owner's UUID
    @NotNull Collection<UUID>
    Get players that are trusted at this protection.
    boolean
    isTrusted(@NotNull UUID playerUID)
    Check if the player is trusted.
    void
    trustPlayer(@NotNull UUID playerUUID)
    Trust a player
  • Method Details

    • isTrusted

      boolean isTrusted(@NotNull @NotNull UUID playerUID)
      Check if the player is trusted.
      Parameters:
      playerUID - the player's UUID
      Returns:
      false, if not trusted
    • getOwner

      @NotNull @NotNull UUID getOwner()
      Get the owner's UUID
      Returns:
      the owner's UUID
    • getTrusted

      @NotNull @NotNull Collection<UUID> getTrusted()
      Get players that are trusted at this protection.
      Returns:
      Players trusted at this protection
    • trustPlayer

      void trustPlayer(@NotNull @NotNull UUID playerUUID)
      Trust a player
      Parameters:
      playerUUID - the player's UUID to trust