Solved WorldGuard API: Check if Location is in Region

Discussion in 'Plugin Development' started by Zeryther, Dec 25, 2014.

Thread Status:
Not open for further replies.
  1. Soo.. I'm trying to check if a location is in a WorldGuard Region. How do I do this? I tried it with .getRegion(name).getPoints().get(loc); however getPoints() isn't a location arraylist.

    SOLVED! Just check the regions for the location with
    .getRegionManager(location.getWorld()).getApplicableRegions(location)

    Then loop through the regions and check the region ID

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 31, 2016
Thread Status:
Not open for further replies.

Share This Page