Class GriefPreventionUtil
java.lang.Object
org.reprogle.honeypot.common.utils.integrations.GriefPreventionUtil
A small helper class for utilizing GriefPrevention
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllowed(org.bukkit.entity.Player player, org.bukkit.Location location) Check if the player has permission
-
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 blocklocation- The location of the block being placed (It may be different than the players location)- Returns:
- True if allowed, false if not
-