Class GriefPreventionUtil

java.lang.Object
org.reprogle.honeypot.common.utils.integrations.GriefPreventionUtil

public class GriefPreventionUtil extends Object
A small helper class for utilizing GriefPrevention
  • Constructor Details

    • GriefPreventionUtil

      public GriefPreventionUtil()
  • Method Details

    • isAllowed

      public boolean isAllowed(org.bukkit.entity.Player player, org.bukkit.Location location)
      Check if the player has permission
      Parameters:
      player - The player placing the block
      location - The location of the block being placed (It may be different than the players location)
      Returns:
      True if allowed, false if not