[SOLVED] Hook into WorldGuard

Discussion in 'Plugin Development' started by se1by, Aug 15, 2012.

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

    se1by

    Hey,
    I want to protect an area around the spawn with worldguard.
    I did it like this:
    http://dev.bukkit.org/paste/6002/ (Paste because I like their syntax highlighting much more :D)
    The region don't appear in the regions.yml file until you create any other region in this world.
    But even with it in the yml file worldguard won't find the region(hit a block in the region = no protection).

    Can you help me?
     
  2. Offline

    se1by

    Can nobody help me?
     
  3. Offline

    zachoooo

    This is the wrong place to ask for help. Ask on the worldguard bukkit dev page.
     
  4. Offline

    se1by

    As this is the plugin development section of the forum and I'm working on a plugin which needs to protect a zone and uses worldguard for it, I think this is the right place :)

    I solved it.
    All I forgot was a simple
    Code:
    getWorldGuard().getRegionManager(getServer().getWorld("world")).save();
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
Thread Status:
Not open for further replies.

Share This Page