Class PlotSquaredRestriction
- java.lang.Object
-
- xyz.tehbrian.restrictionhelper.Restriction
-
- xyz.tehbrian.restrictionhelper.restrictions.PlotSquaredRestriction
-
public final class PlotSquaredRestriction extends Restriction
-
-
Field Summary
-
Fields inherited from class xyz.tehbrian.restrictionhelper.Restriction
debugLogger
-
-
Constructor Summary
Constructors Constructor Description PlotSquaredRestriction(DebugLogger debugLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck(org.bukkit.entity.Player player, org.bukkit.Location bukkitLoc, ActionType actionType)Checks whetherplayerhas sufficient permission to performactionatloc.
-
-
-
Constructor Detail
-
PlotSquaredRestriction
public PlotSquaredRestriction(DebugLogger debugLogger)
-
-
Method Detail
-
check
public boolean check(org.bukkit.entity.Player player, org.bukkit.Location bukkitLoc, ActionType actionType)Description copied from class:RestrictionChecks whetherplayerhas sufficient permission to performactionatloc.- Specified by:
checkin classRestriction- Parameters:
player- the playerbukkitLoc- the location to checkactionType- the type of action- Returns:
- true if the player has permission, false if not
-
-