Solved WorldGuard 6.0 | Get region corners

Discussion in 'Spigot Plugin Development' started by Xuho, Feb 5, 2020.

  1. How I can get the top and bot corners from a region of worldguard?

    Note: I get the list of regions using ApplicableRegionSet like:
    Code (Text):
    ApplicableRegionSet set = WGBukkit.getPlugin().getRegionManager(loc.getWorld()).getApplicableRegions(loc);
  2. By using getRegions on this object, you can iterate over all regions available at that location, then you can use getMaximumPoint and getMinimumPoint on a region object to get a BlockVector3 object. And finally you can use getBlockX, getBlockY and getBlockZ on those objects
    • Like Like x 1
  3. Thanks, thats what I needed :)