WorldGuard API

Discussion in 'Spigot Plugin Development' started by Bear53, May 6, 2015.

  1. Hi I have looked at the methods used in worldguard api and I was wondering if I missed something (probably did) but if there is a command executed that from the senders spot it would wprldguard a 10x10 chunk area with the flags I select. Please don't hate or leave rude comments, this is my first time using WG api and I just need a little help.
  2. @Bear53 First you can calculate the coordinates with the normal Bukkit methods (get location of the player, make 2 locations for the corners of the region). And then you can create a WorldGuard region and add it to WorldGuard, see the documentation of WorldGuard. For settings region flags you call certain methods on the region, see this page.

    Let me know if you run into any trouble, I have some experience with using the WorldGuard API.
  3. @NLThijs48 Thanks, I'm not home right now but I will message you if I have any issues