Class GriefPreventionIntegration

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

public class GriefPreventionIntegration 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 GriefPrevention 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 in 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

    • GriefPreventionIntegration

      public GriefPreventionIntegration()
  • Method Details

    • isClaimRegion

      public boolean isClaimRegion(org.bukkit.Location location)
      Checks whether a given location is inside a GriefPrevention 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 in the claim at the given location. This includes: - Being the claim owner - Having explicit build trust granted by the claim owner
      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