Class HuskClaimsIntegration
java.lang.Object
net.joseplay.allianceutils.api.claims.HuskClaimsIntegration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisClaimRegion(org.bukkit.Location location) Checks whether a given location is inside a HuskClaims claim.booleanisPlayerClaimOwner(org.bukkit.entity.Player player, org.bukkit.Location location) Checks whether the specified player is the owner of the claim at a given location.booleanplayerCanClaimBuild(org.bukkit.entity.Player player, org.bukkit.Location location) Checks whether the player has build permission within the claim at the given location.
-
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 checklocation- 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 checklocation- the location inside the claim- Returns:
- true if the player can build, false otherwise or if no claim exists
-