Solved Help with WorldGuard?

Discussion in 'Bukkit Help' started by UniqueBen, Apr 6, 2012.

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

    UniqueBen

    Hi, I'm in the process of making my own server with a friend and so far it's run smoothly, though now that we've begun protecting areas, there are some areas we don't want certain user groups to be able to enter, we thought it would be entry: deny (/region flag rName entry deny) and then entry-group: Nobody (/region flag rName entry-group Nobody) though when we try and add the usergroup Nobody it's saying "expected [non]member/[non]owner/anyone but got 'nobody' "

    I Thought that maybe it might be just "entry: deny" and then a node to go into the group essentials that I want to be able to enter the region though whilst searching the net I can't find any nodes that would do this. It would also seem that even with just entry: deny regular members can enter the region as I'v tried de-oping my friend and moving him to a random usergroup but it still lets him enter the region.

    Also, Nobody is a usergroup on our server that we want to allow into an area.

    We're using Essentials, Essentials Group Manager and WorldGuard.

    Our Regions file,

    Code:
    regions:
        spawn:
            type: cuboid
            min: {x: -139.0, y: 0.0, z: -134.0}
            max: {x: 73.0, y: 209.0, z: 86.0}
            priority: 0
            flags: {pvp: deny, greeting: 'Welcome to UnknownSubstance, %name%!', farewell: Now leaving Spawn.}
            owners: {}
            members: {}
        tutorial:
            type: cuboid
            min: {x: -29.0, y: 65.0, z: -61.0}
            max: {x: 3.0, y: 71.0, z: -44.0}
            priority: 0
            flags: {greeting: Welcome to Unknown Substance!, entry: deny, entry-group: nobody}
            owners:
                groups: [admin, owner]
            members:
                groups: [nobody]
            parent: spawn
    Our Permissions;
    Code:
    # Group inheritance
    # any inherited groups prefixed with a g: are global groups
    # These groups are defined in the globalgroups.yml
    # and can be inherited in any worlds groups/users.yml.
    #
    # Groups without the g: prefix are groups local to this world
    # and defined in the this groups.yml file.
     
    groups:
      Nobody:
        default: true
        permissions:
        - - bukkit.command.kill
        - - mcmmo.motd
        - MasterPromote.rank.buy.pothead
        - group.nobody
        inheritance:
        - g:essentials_default
        - g:bukkit_default
        info:
          prefix: '&e'
          build: true
          suffix: ''
      Owner:
        default: false
        permissions:
        - '*'
        inheritance:
        - admin
        info:
          prefix: '&4'
          build: true
          suffix: ''
      Mayor:
        default: false
        permissions:
        - - MasterPromote.rank.buy.druglord
        inheritance:
        - druglord
        info:
          prefix: ''
          build: true
          suffix: ''
      Junkie:
        default: false
        permissions:
        - - essentials.kit
        - - essentials.kit.drugs
        - essentials.tpa
        - essentials.tpahere
        - essentials.tpaccept
        - essentials.tpdeny
        - MasterPromote.rank.buy.farmer
        - - MasterPromote.rank.buy.pothead
        inheritance:
        - Pothead
        info:
          prefix: ''
          build: true
          suffix: ''
      Farmer:
        default: false
        permissions:
        - MasterPromote.rank.buy.dealer
        - - MasterPromote.rank.buy.junkie
        inheritance:
        - junkie
        info:
          prefix: ''
          build: true
          suffix: ''
      DrugLord:
        default: false
        permissions:
        - MasterPromote.rank.buy.mayor
        - - - MasterPromote.rank.buy.baron
        inheritance:
        - baron
        info:
          prefix: ''
          build: true
          suffix: ''
      Admin:
        default: false
        permissions: []
        inheritance:
        - moderator
        - g:essentials_admin
        - g:bukkit_admin
        - g:towny_admin
        info:
          prefix: '&c'
          build: true
          suffix: ''
      Dealer:
        default: false
        permissions:
        - MasterPromote.rank.buy.baron
        - - MasterPromote.rank.buy.farmer
        inheritance:
        - farmer
        info:
          prefix: ''
          build: true
          suffix: ''
      Baron:
        default: false
        permissions:
        - MasterPromote.rank.buy.druglord
        - - MasterPromote.rank.buy.dealer
        inheritance:
        - dealer
        info:
          prefix: ''
          build: true
          suffix: ''
      Pothead:
        default: false
        permissions:
        - -bukkit.command.kill
        - essentials.suicide
        - essentials.motd
        - essentials.help
        - essentials.home
        - essentials.sethome
        - essentials.kit
        - essentials.kit.drugs
        - essentials.afk
        - essentials.compass
        - essentials.helpop
        - essentials.ignore
        - essentials.msg
        - essentials.rules
        - essentials.seen
        - essentials.delhome
        - essentials.sethome
        - MasterPromote.rank.buy.junkie
        - - MasterPromote.rank.buy.pothead
        - - group.nobody
        inheritance:
        - Nobody
        info:
          prefix: ''
          build: true
          suffix: ''
      Builder:
        default: false
        permissions: []
        inheritance:
        - default
        - g:essentials_builder
        - g:towny_builder
        info:
          prefix: '&2'
          build: true
          suffix: ''
      Moderator:
        default: false
        permissions: []
        inheritance:
        - builder
        - g:essentials_moderator
        - g:bukkit_moderator
        - g:towny_moderator
        info:
          prefix: '&5'
          build: true
          suffix: ''
    
    Come on guys, I need help, Surely someone knows why it's not working?

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

    Wendo

    Worldguard's entry-group flag doesn't use your permissions groups, it uses it's own internal ones.

    All you should need to do is have entry deny as you have, and make the groups you want to allow in, members of the region, if you don't want the "nobody" group to get in, remove them as a member of the region
     
  3. Offline

    UniqueBen

    I Tried doing that as well but for some reason the entry deny command isn't stopping people from entering, It's confusing because I'v searched for hours trying to fix this 1 issue and they all say to do what you said to yet it doesn't work for me :S
     
  4. Offline

    Wendo

    Have you added the permission node per group so worldguard will recognize the group names? I know I've had to do that to get some of the other flags working and it's not highlighted in the documentation very well?

    Basically you would need to create a permission not called group.<groupname> for each group you want worldguard to recognize. In this case add

    Code:
    group.nobody
    to the nobody groups permissions
     
  5. Offline

    UniqueBen

    Ok, Did what wendo said and then did entry deny via flag and then did region addmember {ID} g:nobody

    It entered the attributes in the worldguard regions file fine but it's still allowing anyone to enter.
     
  6. Offline

    andrewpo

    To only allow certain people or groups into a region, do this.
    Code:
    ***SELECT THE REGION USING WORLDEDIT***
    /region define REGION_NAME
    /region addmember REGION_NAME g:examplegroup g:examplegrouptwo
    /region flag REGION_NAME entry deny
    That will stop anyone who is not in 'examplegroup' or 'examplegrouptwo' from entering the region, change those group names to reflect your set-up. The ' g: ' indicates that it is the name of a group.

    You can also allow specific users access with:
    Code:
    /region addmember REGION_NAME usernameone usernametwo usernamethree
    or for one user only
    Code:
    /region addmember REGION_NAME usernameone
    _____________________
    Or to stop ANYONE who does not have the worldguard.* permission node entering, do this
    Code:
    ***SELECT REGION WITH WE***
    /region define REGION_NAME
    /region flag REGION_NAME entry deny
    /region flag REGION_NAME entry-group owners
    ----

    You should be careful editing the worldguard files, it's best to use the commands to avoid messing stuff up.
     
  7. Offline

    UniqueBen

    I'v already done this exactly as you stated and it's still allowing any group to enter.

    I'm presuming since I'm using inheritence I needed to do - -group.nobody on the next rank to stop them from inheriting the group permission, though it didn't work :(
     
  8. Offline

    andrewpo

    Upload your worldguard regions yml file to pastebin.com, post the link here
    Do the same with permissions

    Someone else will have to help you though once you've posted those links, I have to go to bed (2.50am here xD)
     
  9. Offline

    UniqueBen

    (Regions file)
    http://pastebin.com/emqX62H3

    (Essentials Group Manager file [permissions])
    http://pastebin.com/nc1BcUkS

    From what I can see everything is correct there :S I'v also checked them with the YAML parser and it doesn't show any errors.

    Woow Now I seem like a twit, updated WorldGuard, working now :)

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

    andrewpo

    Since your issue in the Bukkit Help forum is resolved, please change the prefix of your topic title to Solved by going to Thread Tools then 'Edit Thread'
    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page