Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Location loc = new Location(v.getWorld(), v.getLocation().getX(), v.getLocation().getY(), v.getLocation().getZ());
- BlockVector3 vec = BlockVector3.at(v.getLocation().getBlockX(), v.getLocation().getBlockY(), v.getLocation().getBlockZ());
- RegionContainer container = WorldGuard.getInstance().getPlatform().getRegionContainer();
- RegionManager regions = container.get(BukkitAdapter.adapt(loc.getWorld()));
- ApplicableRegionSet set = regions.getApplicableRegions(vec);
- for (ProtectedRegion region : set) {
- //my code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement