Class WorldGuardFeature

java.lang.Object
com.fastasyncworldedit.core.regions.FaweMaskManager
com.fastasyncworldedit.bukkit.regions.BukkitMaskManager
com.fastasyncworldedit.bukkit.regions.WorldGuardFeature
All Implemented Interfaces:
Listener

public class WorldGuardFeature extends BukkitMaskManager implements Listener
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fastasyncworldedit.core.regions.FaweMaskManager

    com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fastasyncworldedit.core.regions.FaweMask
    getMask(com.sk89q.worldedit.entity.Player wePlayer, com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType type, boolean isWhitelist)
     
    Set<com.sk89q.worldguard.protection.regions.ProtectedRegion>
    getRegions(com.sk89q.worldguard.LocalPlayer player, Location location, boolean isWhitelist)
    Get the WorldGuard regions a player is allowed in based on the current location, or if isWhitelist set to false, get the blacklisted regions for the world.
    boolean
    isAllowed(com.sk89q.worldguard.LocalPlayer localplayer, com.sk89q.worldguard.protection.regions.ProtectedRegion region)
     

    Methods inherited from class com.fastasyncworldedit.bukkit.regions.BukkitMaskManager

    hasMemberPermission

    Methods inherited from class com.fastasyncworldedit.core.regions.FaweMaskManager

    getKey, isExclusive, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WorldGuardFeature

      public WorldGuardFeature(Plugin plugin)
  • Method Details

    • getRegions

      public Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> getRegions(com.sk89q.worldguard.LocalPlayer player, Location location, boolean isWhitelist)
      Get the WorldGuard regions a player is allowed in based on the current location, or if isWhitelist set to false, get the blacklisted regions for the world.
    • isAllowed

      public boolean isAllowed(com.sk89q.worldguard.LocalPlayer localplayer, com.sk89q.worldguard.protection.regions.ProtectedRegion region)
    • getMask

      public com.fastasyncworldedit.core.regions.FaweMask getMask(com.sk89q.worldedit.entity.Player wePlayer, com.fastasyncworldedit.core.regions.FaweMaskManager.MaskType type, boolean isWhitelist)
      Specified by:
      getMask in class com.fastasyncworldedit.core.regions.FaweMaskManager