Interface PlayerManager


public interface PlayerManager
Interface for interacting with players on the map
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get whether a player is hidden on the map
    default void
    hidden(@NonNull UUID uuid, boolean hide)
    Set whether a player is hidden on the map temporarily
    void
    hidden(@NonNull UUID uuid, boolean hide, boolean persistent)
    Set whether a player is hidden on the map
    default void
    Set a player to be temporarily hidden on the map
    void
    hide(@NonNull UUID uuid, boolean persistent)
    Set a player to be hidden on the map
    default void
    Set a player to temporarily not be hidden on the map
    void
    show(@NonNull UUID uuid, boolean persistent)
    Set a player to not be hidden on the map
  • Method Details

    • hide

      default void hide(@NonNull UUID uuid)
      Set a player to be temporarily hidden on the map

      The status will last until the server restarts or the plugin reloads

      Parameters:
      uuid - player UUID
    • hide

      void hide(@NonNull UUID uuid, boolean persistent)
      Set a player to be hidden on the map
      Parameters:
      uuid - player UUID
      persistent - persist the hide status
    • show

      default void show(@NonNull UUID uuid)
      Set a player to temporarily not be hidden on the map

      The status will last until the server restarts or the plugin reloads

      Parameters:
      uuid - player UUID
    • show

      void show(@NonNull UUID uuid, boolean persistent)
      Set a player to not be hidden on the map
      Parameters:
      uuid - player UUID
      persistent - persist the show status
    • hidden

      default void hidden(@NonNull UUID uuid, boolean hide)
      Set whether a player is hidden on the map temporarily

      The status will last until the server restarts or the plugin reloads

      Parameters:
      uuid - player UUID
      hide - whether to hide the player
    • hidden

      void hidden(@NonNull UUID uuid, boolean hide, boolean persistent)
      Set whether a player is hidden on the map
      Parameters:
      uuid - player UUID
      hide - whether to hide the player
      persistent - persist the hide status
    • hidden

      boolean hidden(@NonNull UUID uuid)
      Get whether a player is hidden on the map
      Parameters:
      uuid - player UUID
      Returns:
      whether the player is hidden