Permission + WorldGuard

Discussion in 'Bukkit Help' started by Twoframes, Apr 26, 2011.

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

    Twoframes

    Hello,

    I've got a few issues with WorldGuard and Permissions. I want all my players to be able to create their own region and set flags for a specific region. I've already managed to give them permission to use selection tool (//wand, hpos1,hpos2, pos1 and pos2), and I've managed to let them create their own region. But I'm having serious issues with letting them flag their region.

    Here's the deal, it's an SMP-server, so I can't allow them to use every flag available to their region, e.g healing over time, teleport, and so on. I've chosen a few flags they can use, here they are:

    pvp - Allow or block PvP in a selected region
    mob-damage - Allow or block mob damage on players in a selected region
    creeper-explosion - Allow or block creeper damage to terrain and players.
    tnt - Allow or block TNT
    lighter - Allow or block flint and steel.
    fire-spread - Allow or block the spread of fire
    lava-fire - Allow or block whether lava can start fires
    chest-access - Allow or block chest access.
    water-flow - Allow or block flow of water.
    use - Allow or block the ability to use doors, buttons, pressure plates, or levers
    greeting - Set a message to be displayed when the user enters the region
    farewell - Set a message to be displayed when the user leaves the region
    notify-greet - Turn on or off region greeting messages.
    notify-farewell - Turn on or of region farewell messages.
    deny-spawn - Set mobs that can't spawn within the region
    lavaflow - Allow or block flow of lava.

    Which nodes should I use in my Permission file in order to restrict them to only a specific amount of flags for their region?

    I think you can find every permission node on this site, but I haven't managed to get it working yet - or I'm to stupid to understand which to include and which ones I am not suppose to include.

    Here's my Permission file
    Code:
    groups:
        Players:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.payment'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
                - 'lwc.protect'
                - 'commandbook.kit.starter'
                - 'commandbook.who'
                - 'commandbook.msg'
                - 'commandbook.say.me'
                - 'commandbook.say'
                - 'commandbook.whereami'
                - 'commandbook.motd'
                - 'commandbook.rules'
                - 'commandbook.kit.list'
                - 'commandbook.kit.kits.Starter'
                - 'worldguard.region.claim'
                - 'worldedit.selection.*'
                - 'worldguard.region.list.*'
                - 'worldguard.region.info.*'
                - 'worldedit.wand'
                - 'worldedit.wand.toggle'
    
    If you know how to do this, could you just type in which nodes I am suppose to use?

    Thank you!

    Bump :/

    Not even one reply?

    Last bump. I thought Permission plugin + WorldGuard is something almost everyone have.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  2. Offline

    1lann

    -_- it's only been less than half a day and you've already bumped it twice. Wait at least a day before you bump it. And no, there are no permission nodes avaliable to specifically add what a player can do from worldguard. You'll have to use separate plugins for this.
     
    Twoframes likes this.
  3. Offline

    Godspeed

    Code:
    /region flag [specific flags]
    worldguard.region.flag.flags.*
    worldguard.region.flag.flags.FLAG_NAME
    
    These flags allow a player to use specific flags (e.g. worldguard.region.flag.flags.pvp
    would allow a player to set pvp flag on a region they have access to). 
     
    Twoframes likes this.
  4. Offline

    1lann

  5. Offline

    Twoframes

    Sorry, I'm not familiar with forum rules. I should probably read them ...

    Yes, I've noticed these.
    If I use
    Code:
    worldguard.region.flag.flags.*
    the users can use any flag they want. But I want to restrict them to only a few flags (mentioned above).
    If I use
    Code:
    worldguard.region.flag.flags.FLAG_NAME (e.g worldguard.region.flag.flags.fire-spread)
    then the users will get a "No permission" notice in their chat if they try to flag their region with fire-spread.

    Am I doing something wrong?

    I really appreciate the response!
     
  6. Offline

    Godspeed

    Twoframes likes this.
  7. Offline

    Twoframes

    I see, thank you Godspeed - but the issue is still at hand.

    If I try many of the listed flags that is reported to work, they still give me No Permission notice. How do I give my users permission on only a few flags? Because
    Code:
    worldguard.region.flag.flags.FLAG_NAME (e.g worldguard.region.flag.flags.fire-spread)
    does not work (gives no permission).

    Bump.

    Really need help on this one :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  8. Offline

    Jeyge

    This one took a little while to figure out and some code crawling but here is a sample set of the permissions you will need to set:

    - 'worldguard.region.info.own.*'
    - 'worldguard.region.flag.own.*'
    - 'worldguard.region.flag.flags.pvp.*'

    The .* at the end of each of the permissions was the hardest part to figure out.
     
  9. Offline

    Twoframes

    I will jump right to it and test it!

    Edit: Holy mother of god, you actually made it work! I've actually tried all those commands EXCEPT I did not do a '*' sign behind the flag.flags.pvp node.

    Horry shiit, THANK you SO much!
     
  10. Offline

    Godspeed

    Oke that is something to write down!

    nice to see you got it working :)
     
  11. Offline

    Twoframes

    Yeah, I've been tingling with those damn permissions for two straight days - and now it works!
     
Thread Status:
Not open for further replies.

Share This Page