Class WorldGuard_V7
java.lang.Object
de.redstoneworld.redrestrictionhelper.analyze.PluginQueryExecution
de.redstoneworld.redrestrictionhelper.analyze.queries.WorldGuard_V7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasWorldBypassPermission(com.sk89q.worldguard.LocalPlayer localPlayer) Check whether a player has bypass permission in the corresponding world of target location.static booleanisRestrictedWorld(com.sk89q.worldedit.world.World world) This method returns whether the "regions.enable" option is activated for the world or not.static ResultrunCheck(RestrictionCheck check)
-
Constructor Details
-
WorldGuard_V7
public WorldGuard_V7()
-
-
Method Details
-
runCheck
-
isRestrictedWorld
public static boolean isRestrictedWorld(com.sk89q.worldedit.world.World world) This method returns whether the "regions.enable" option is activated for the world or not. The setting is taken from the WorldGuard main config (`config.yml`) and can be specified with the world config (`/worlds/%world-name%/config.yml`).- Parameters:
world- (WorldGuard world) the target world- Returns:
- 'true' if the region-feature is activated in this world
-
hasWorldBypassPermission
public static boolean hasWorldBypassPermission(com.sk89q.worldguard.LocalPlayer localPlayer) Check whether a player has bypass permission in the corresponding world of target location.- Parameters:
localPlayer- (LocalPlayer) the target player- Returns:
- 'true' if the player has bypass permission in the corresponding world
-