Class HuskClaimsIntegration

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

public class HuskClaimsIntegration 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 HuskClaims claim.
    boolean
    isPlayerClaimOwner(org.bukkit.entity.Player player, org.bukkit.Location location)
    Checks whether the specified player is the owner of the claim at a given location.
    boolean
    playerCanClaimBuild(org.bukkit.entity.Player player, org.bukkit.Location location)
    Checks whether the player has build permission within the claim at the given location.

    Methods inherited from class java.lang.Object

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

    • HuskClaimsIntegration

      public HuskClaimsIntegration()
  • Method Details

    • isClaimRegion

      public boolean isClaimRegion(org.bukkit.Location location)
      Checks whether a given location is inside a HuskClaims claim.
      Parameters:
      location - the location to check
      Returns:
      true if the location is within a claim, false otherwise or if the plugin 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 claim at a given location.
      Parameters:
      player - the player to check
      location - the location of the claim
      Returns:
      true if the player owns the claim, false otherwise or if no claim exists
    • playerCanClaimBuild

      public boolean playerCanClaimBuild(org.bukkit.entity.Player player, org.bukkit.Location location)
      Checks whether the player has build permission within the claim at the given location. This includes: - Being the claim owner - Being explicitly trusted in the claim
      Parameters:
      player - the player to check
      location - the location inside the claim
      Returns:
      true if the player can build, false otherwise or if no claim exists