Creating WorldGuard Polygon regions?

Discussion in 'Plugin Development' started by RandomPanda30, May 24, 2016.

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

    RandomPanda30

    The WorldGuard API from what I've seen, is not clear on creating polygon regions using the WorldGuard API? Can anyone provide some brief examples on how to do it? Don't worry I'm not asking for a full class, just a general understanding of how to do it.

    Thanks
     
  2. Offline

    I Al Istannen

  3. Offline

    RandomPanda30

    See what worries me is this

    Code:
    int minY = 0;
    int maxY = 54;
    The problem for me is that I have complicated selections in a region that have varied heights? Would it still work this way?
     
  4. Offline

    I Al Istannen

    @RandomPanda30
    So, nope. Might want to add the whole house (bounding box) and check the locations for yourself and also cancel yourself. Like totally ignoring worldguard. Alternatively you could create a varied region by using multiple smaller ones. The first idea with doing it yourself might be better though. Depends on what exactly you want to do.

    I think there is no worldguard region for what you want. It is a quite small usecase. I might be wrong though.
     
  5. Offline

    RandomPanda30

    Hmm I made a post a few days ago asking how to ignore WorldGuard but got no where with it as it kept showing the "You don't have permission for this area" message. Hmhm
     
  6. Offline

    I Al Istannen

    @RandomPanda30
    Yes, that is why I said you could create a biggere region and give the user the rights for this region. this means you won't have to cancel worldguard. Then you could cancel all the events inside the region, where the user shouldn't be able to build, yourself. I think there is not really an easier way, but there might be nevertheless.
     
Thread Status:
Not open for further replies.

Share This Page