#How do I interact with worldguard regions in myplugin?

1 messages · Page 1 of 1 (latest)

frigid shadow
#

Im trying to get a random location within a region (thats above ground level) but im not sure how I can interact with worldguard.

mossy vapor
#

You can get the minimum X value and Z value of a region and maximum

frigid shadow
#

but how do i interact with the plugin?

mossy vapor
#

Add it as a dependency

frigid shadow
#

how do i do that?

#

and what after that?

mossy vapor
#

Then in your main class that extends Java plug-in, create a “WorldGuard” variable and define it by getting the plug-in through “Bukkit.getPluginManager().getPlugin(“WorldGuard”);” make sure to add WorldGuard to depends in your plugin.yml

frigid shadow
#

ok got it

#

ty

#

but how do i interact with it?

#

oh nvm im dumb

#

tysm br