Class WorldGuardHandler
java.lang.Object
us.talabrek.ultimateskyblock.handler.WorldGuardHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.sk89q.worldedit.math.BlockVector3
asVector
(org.bukkit.Location location) static List<org.bukkit.entity.LivingEntity>
getCreaturesInRegion
(org.bukkit.World world, com.sk89q.worldguard.protection.regions.ProtectedRegion region) static Set<com.sk89q.worldguard.protection.regions.ProtectedRegion>
getIntersectingRegions
(org.bukkit.Location islandLocation) static String
getIslandNameAt
(org.bukkit.Location location) static com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion
getIslandRegion
(org.bukkit.Location islandLocation) static com.sk89q.worldguard.protection.regions.ProtectedRegion
getIslandRegionAt
(org.bukkit.Location location) static com.sk89q.worldguard.protection.regions.ProtectedRegion
getNetherRegionAt
(org.bukkit.Location location) static List<org.bukkit.entity.Player>
getPlayersInRegion
(org.bukkit.World world, com.sk89q.worldguard.protection.regions.ProtectedRegion region) static com.sk89q.worldedit.math.BlockVector3
getProtectionVectorLeft
(org.bukkit.Location island) static com.sk89q.worldedit.math.BlockVector3
getProtectionVectorRight
(org.bukkit.Location island) static com.sk89q.worldguard.internal.platform.WorldGuardPlatform
static boolean
isInRegion
(com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion islandRegion, org.bukkit.Location loc) static boolean
isIslandIntersectingSpawn
(org.bukkit.Location islandLocation) static void
islandLock
(org.bukkit.command.CommandSender sender, String islandName) static void
islandUnlock
(org.bukkit.command.CommandSender sender, String islandName) static boolean
protectIsland
(org.bukkit.command.CommandSender sender, PlayerInfo pi) static boolean
protectIsland
(uSkyBlock plugin, org.bukkit.command.CommandSender sender, IslandInfo islandConfig) static void
removeIslandRegion
(String islandName) static void
setupGlobal
(org.bukkit.World world) static void
updateRegion
(IslandInfo islandInfo)
-
Constructor Details
-
WorldGuardHandler
public WorldGuardHandler()
-
-
Method Details
-
getWorldGuard
public static com.sk89q.worldguard.internal.platform.WorldGuardPlatform getWorldGuard() -
protectIsland
-
protectIsland
public static boolean protectIsland(uSkyBlock plugin, org.bukkit.command.CommandSender sender, IslandInfo islandConfig) -
updateRegion
-
islandLock
-
islandUnlock
-
getProtectionVectorLeft
public static com.sk89q.worldedit.math.BlockVector3 getProtectionVectorLeft(org.bukkit.Location island) -
getProtectionVectorRight
public static com.sk89q.worldedit.math.BlockVector3 getProtectionVectorRight(org.bukkit.Location island) -
getIslandNameAt
-
getIslandRegionAt
public static com.sk89q.worldguard.protection.regions.ProtectedRegion getIslandRegionAt(org.bukkit.Location location) -
getNetherRegionAt
public static com.sk89q.worldguard.protection.regions.ProtectedRegion getNetherRegionAt(org.bukkit.Location location) -
removeIslandRegion
-
setupGlobal
public static void setupGlobal(org.bukkit.World world) -
getIntersectingRegions
public static Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> getIntersectingRegions(org.bukkit.Location islandLocation) -
isIslandIntersectingSpawn
public static boolean isIslandIntersectingSpawn(org.bukkit.Location islandLocation) -
getIslandRegion
public static com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion getIslandRegion(org.bukkit.Location islandLocation) -
getPlayersInRegion
public static List<org.bukkit.entity.Player> getPlayersInRegion(org.bukkit.World world, com.sk89q.worldguard.protection.regions.ProtectedRegion region) -
getCreaturesInRegion
public static List<org.bukkit.entity.LivingEntity> getCreaturesInRegion(org.bukkit.World world, com.sk89q.worldguard.protection.regions.ProtectedRegion region) -
asVector
public static com.sk89q.worldedit.math.BlockVector3 asVector(org.bukkit.Location location) -
isInRegion
public static boolean isInRegion(com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion islandRegion, org.bukkit.Location loc)
-