java.lang.Object
de.redstoneworld.redrestrictionhelper.analyze.PluginQueryExecution
de.redstoneworld.redrestrictionhelper.analyze.queries.WorldGuard_V7

public class WorldGuard_V7 extends PluginQueryExecution
  • Constructor Details

    • WorldGuard_V7

      public WorldGuard_V7()
  • Method Details

    • runCheck

      public static Result runCheck(RestrictionCheck check)
    • 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