Check if worldedit selection overlaps worldguard region

Discussion in 'Plugin Development' started by Meatiex, Jan 28, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Meatiex

    How would I check if my worldedit selection overlaps any worldguard region?

    The only way I can think of doing this is checking every block in then worldedit selection and every block in every region to see if any match up, but theirs probably a better way of doing it, any ideas?
     
  2. Offline

    Skionz

    @Meatiex Vector#isInAABB() may be useful.
     
  3. @Meatiex
    I`m sure there must be a method or event for get the region points of every area (world guard and world edit). You must obtain those points and do some math.

    Or best do as Skionz said
     
Thread Status:
Not open for further replies.

Share This Page