Class YTerrenosIntegration

java.lang.Object
net.joseplay.allianceutils.api.claims.YTerrenosIntegration

public class YTerrenosIntegration extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isClaimRegion(org.bukkit.Location location)
    Checks whether a given location is inside a yTerrenos claim.
    boolean
    isPlayerClaimOwner(org.bukkit.entity.Player player, org.bukkit.Location location)
    Checks whether the specified player is the owner of the terrain at a given location.
    boolean
    playerCanClaimBuild(org.bukkit.entity.Player player, org.bukkit.Location location)
    Checks whether the player has build permission within the terrain at the given location.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • YTerrenosIntegration

      public YTerrenosIntegration()
  • Method Details

    • isClaimRegion

      public boolean isClaimRegion(org.bukkit.Location location)
      Checks whether a given location is inside a yTerrenos claim.
      Parameters:
      location - the location to check
      Returns:
      true if the location belongs to a terrain, false otherwise or if the API is unavailable
    • isPlayerClaimOwner

      public boolean isPlayerClaimOwner(org.bukkit.entity.Player player, org.bukkit.Location location)
      Checks whether the specified player is the owner of the terrain at a given location. Note: If the location is not inside a claim, this method returns true by design.
      Parameters:
      player - the player to check
      location - the location of the terrain
      Returns:
      true if the player owns the terrain or if no claim exists, false otherwise
    • playerCanClaimBuild

      public boolean playerCanClaimBuild(org.bukkit.entity.Player player, org.bukkit.Location location)
      Checks whether the player has build permission within the terrain at the given location. Note: If the location is not inside a claim, this method returns true by design.
      Parameters:
      player - the player to check
      location - the location inside the terrain
      Returns:
      true if the player can build, false otherwise