Solved PermissionsEx/WorldGuard allow building only in regions

Discussion in 'Bukkit Help' started by Brad811, Feb 28, 2012.

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

    Brad811

    I have searched around trying to find out how to do this, without luck.

    I would like building to be disallowed by default, however if you are within a WorldGuard region that you are the owner or a member of, you are able to build within that region.

    So far I've only been able to blanket allow or block building.
    How can I achieve what I am trying to do?

    Here are my versions:

    CraftBukkit 1.1 R4

    WorldGuard 5.4
    Permissions 2.7.7
    PermissionsEx 1.18

    Thank you!
     
  2. Offline

    flamedaces

    any un-defined area can be controlled by editted the flags of the region "__global__" (two under-dashes)
    for example:
    /region flag __global__ build deny
     
  3. Offline

    Brad811

    Hey, thanks for your suggestion!

    I tried this, but unfortunately PermissionsEx overrides it.

    I can build everywhere (inside the region and out):
    Code:
    groups:
        Default:
            default: true
            permissions:
            - modifyworld.blocks.*
            - worldguard.build
    Code:
    groups:
        Default:
            default: true
            permissions:
    #        - modifyworld.blocks.*
            - worldguard.build
    Code:
    groups:
        Default:
            default: true
            permissions:
            - modifyworld.blocks.*
    #        - worldguard.build
    I can't build anywhere (inside the region or out):
    Code:
    groups:
        Default:
            default: true
            permissions:
    #        - modifyworld.blocks.*
    #        - worldguard.build
    I have set myself to not be an OP. I am the owner of the region I am testing.

    I have made sure my region is correct, I can select it and see the red cube around it.
    Here is my regions file just in case:
    Code:
    regions:
      __global__:
        flags: {build: deny}
        priority: 0
        type: global
        owners: {}
        members: {}
      builders:
        min: {z: 1601.0, y: 64.0, x: 301.0}
        flags: {}
        max: {z: 1699.0, y: 127.0, x: 399.0}
        priority: 0
        type: cuboid
        owners:
          players: [*me*]
        members:
          players: [*someone else*]
    I also get the same results without the __global__ definition.
     
  4. Offline

    flamedaces

    try disabling the modifyworld plugin. other than that, i have no idea.
     
  5. Offline

    Brad811

    Thank you for your help, I was able to find a combination that worked!
     
  6. Offline

    cacalondrio

    you could share with us your combination that solved it -.-
     
  7. Offline

    Derjyn

    Yep. Really hate when people do this. It's as if they've never Googled for a solution, and come across what they thought was the solution, only to end up throwing their cat out the second story window at the neighbor out of frustration because some tool asks for help, with people helping, then ending the thread with "I found the solution!".
     
  8. Offline

    Heliwr

    Presumably the builders region was inheriting build: deny from __global__, try setting build: none in the builders region.
     
Thread Status:
Not open for further replies.

Share This Page