Interface OAPlayer


public interface OAPlayer
  • Method Details

    • getPlayerUUID

      UUID getPlayerUUID()
      Get the player UUID
      Returns:
      Returns the UUID of the player
    • getName

      String getName()
      Get the name
      Returns:
      Returns the name of the player
    • haveAlertsOn

      boolean haveAlertsOn()
      Have the player alerts messages enabled?
      Returns:
      Returns true if the player have alerts on
    • setAlertsOn

      void setAlertsOn(boolean alerts)
      Set alerts on/off
      Parameters:
      alerts - True to enable alerts
    • isWhitelisted

      boolean isWhitelisted()
      Is the player whitelisted?
      Returns:
      Returns true if the player is whitelisted
    • setWhitelisted

      void setWhitelisted(boolean whitelisted)
      Add or remove the player from the whitelist
      Parameters:
      whitelisted - True to whitelist
    • getBlockDestroy

      OABlockDestroy getBlockDestroy(OABlock block)
      Get block destroy stats of the player
      Parameters:
      block - The block
      Returns:
      Returns the OABlockDestroy instance
    • setBlockDestroy

      void setBlockDestroy(OABlockDestroy blockDestroy)
      Set/update a block destroy of the player
      Parameters:
      blockDestroy - The OABlockDestroy to set/update
    • getAllBlockDestroy

      Set<OABlockDestroy> getAllBlockDestroy()
      Get all blocks destroy stats of the player
      Returns:
      Returns a set of OABlockDestroy