Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Location loc = new Location(v.getWorld(), v.getLocation().getX(), v.getLocation().getY(), v.getLocation().getZ());
  2. BlockVector3 vec = BlockVector3.at(v.getLocation().getBlockX(), v.getLocation().getBlockY(), v.getLocation().getBlockZ());
  3.  
  4. RegionContainer container = WorldGuard.getInstance().getPlatform().getRegionContainer();
  5. RegionManager regions = container.get(BukkitAdapter.adapt(loc.getWorld()));
  6. ApplicableRegionSet set = regions.getApplicableRegions(vec);
  7. for (ProtectedRegion region : set) {
  8. //my code
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement