Class PlotSquaredFeature
java.lang.Object
com.fastasyncworldedit.core.regions.FaweMaskManager
com.fastasyncworldedit.bukkit.regions.plotsquared.PlotSquaredFeature
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fastasyncworldedit.core.regions.FaweMaskManager
FaweMaskManager.MaskType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMask
(Player player, FaweMaskManager.MaskType type, boolean isWhitelist) getMask
(Player player, FaweMaskManager.MaskType type, boolean isWhitelist, boolean notify) boolean
isAllowed
(Player player, com.plotsquared.core.plot.Plot plot, FaweMaskManager.MaskType type, boolean notify) Whether the player is allowed to use FAWE on a PlotSquared plot.Methods inherited from class com.fastasyncworldedit.core.regions.FaweMaskManager
getKey, isExclusive, toString
-
Constructor Details
-
PlotSquaredFeature
public PlotSquaredFeature()
-
-
Method Details
-
isAllowed
public boolean isAllowed(Player player, com.plotsquared.core.plot.Plot plot, FaweMaskManager.MaskType type, boolean notify) Whether the player is allowed to use FAWE on a PlotSquared plot.- Parameters:
player
- thePlayer
plot
- thePlot
type
- theFaweMaskManager.MaskType
- Returns:
true
if the player is the plot owner, trusted, has the permission fawe.plotsquared.member or fawe.plotsquared.admin and the NoWorldeditFlag is not set; otherwisefalse
-
getMask
- Specified by:
getMask
in classFaweMaskManager
-
getMask
public FaweMask getMask(Player player, FaweMaskManager.MaskType type, boolean isWhitelist, boolean notify) - Overrides:
getMask
in classFaweMaskManager
-