Package org.reprogle.honeypot.utils
Class GriefPreventionUtil
java.lang.Object
org.reprogle.honeypot.utils.GriefPreventionUtil
A small utility class for helping connect with GriefPrevention. This allows developers to check
if Honeypots are allowed within a region, all without directly integrating WorldGuard in your project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisAllowed(org.bukkit.entity.Player player, org.bukkit.Location location) Check if the player has permission
-
Constructor Details
-
GriefPreventionUtil
public GriefPreventionUtil()
-
-
Method Details
-
isAllowed
public abstract 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
-