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