WorldGuard Region flag Build:Deny Not working.

Discussion in 'Bukkit Help' started by Klaki892, Aug 10, 2011.

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

    Klaki892

    Hello Bukkit users, Im trying to finish the last of my server by adding permissions (havent done so yet) and preparing regions, I came up with a problem, Im Running the Server From my computer, and i have 2 computers, One, Is named: Klaki892, in permissions hes a... "Owner" and he has permissions: '*'. i set up the region in his name, Now, all the flags that are currently in place Seem to work, no mob spawn and etc. Excpet one, I have the Problem that Build Isnt Working when i set it to deny, how i know this is because on my second computer, i named it Guest. And hes in the Default Group Which Has No permissions at all.

    I Checked the region Info, and Build is set to deny, but yet Guest can destroy blocks like its no tommorw (and place them).

    I Wanted to know if anyone Had the same Problem or could help me with this. Again, All other flags work, such as lighter. but yet the default user can still build. in the area i set it so no one could.

    It may be A Critical Fact that Default users in permission have Build: True. i dunno if that matters or not. (so they can build outside my region but not inside).

    Any Help is Appericated! since this is the second to last thing i have to do! til my server is up :)

    Also: Here are my Permissions and Regions files, (the region file is in worldguard)

    Permissions:

    Code:
    groups:
        Guests:
            default: true
            info:
                prefix: '[newbie]'
                suffix: ''
                build: true
            inheritance:
        Member:
            default: false
            info:
                prefix: '[MEMBER]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'warpplugin.warp'
                - 'econplugin.basic.*'
                - '*'
        Moderator:
            default: false
            info:
                prefix: '[MODERATOR]'
                suffix: ''
                build: true
            inheritance:
                - Member
            permissions:
                - 'modplugin.ban'
                - 'modplugin.kick'
                - 'modplugin.unban'
                - '*'
        Admins:
            default: false
            info:
                prefix: '[ADMIN]'
                suffix: ''
                build: true
            inheritance:
            - Moderator
            permissions:
                 - '*'
    
        OWNERS:
            default: false
            info:
                prefix: '[OWNER]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                 - '*'
    track:
       - Guests
       - Member
       - Moderator
       - Admins
       - OWNERS
    
    _______________________________________________________
    And here is the Regions file:
    Code:
    #
    # WorldGuard regions file
    #
    # WARNING: THIS FILE IS AUTOMATICALLY GENERATED. If you modify this file by
    # hand, be aware that A SINGLE MISTYPED CHARACTER CAN CORRUPT THE FILE. If
    # WorldGuard is unable to parse the file, your regions will FAIL TO LOAD and
    # the contents of this file will reset. Please use a YAML validator such as
    # [URL]http://yaml-online-parser.appspot.com[/URL] (for smaller files).
    #
    # REMEMBER TO KEEP PERIODICAL BACKUPS.
    #
    regions:
      pvp:
        min: {z: 17.0, y: 71.0, x: 445.0}
        flags: {pvp: deny, tnt: deny, mob-damage: allow, build: deny, lighter: deny, snow-fall: deny,
          mob-spawning: deny}
        max: {z: 22.0, y: 72.0, x: 456.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
      start:
        min: {z: 172.0, y: 54.0, x: 445.0}
        flags: {}
        max: {z: 178.0, y: 58.0, x: 451.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
      [B]claycity:[/B]
    [B]    min: {z: 24.0, y: 0.0, x: 421.0}[/B]
    [B]    flags: {creeper-explosion: deny, pvp: deny, passthrough: allow, greeting: Welcome to Clay City!,[/B]
    [B]      farewell: You are Leaving Claycity! Good Luck out there!, tnt: deny, mob-damage: deny,[/B]
    [B]      build: deny, lighter: deny, snow-fall: deny, mob-spawning: deny}[/B]
    [B]    max: {z: 127.0, y: 127.0, x: 476.0}[/B]
    [B]    priority: 0[/B]
    [B]    type: cuboid[/B]
    [B]    owners:[/B]
    [B]      players: [klaki892][/B]
    [B]    members: {}[/B]
      klay's_house:
        min: {z: 55.0, y: 0.0, x: 429.0}
        flags: {notify-enter: true, build: deny}
        max: {z: 63.0, y: 127.0, x: 437.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
      tut:
        min: {z: 132.0, y: 0.0, x: 438.0}
        flags: {creeper-explosion: deny, pvp: deny, tnt: deny, build: deny, lighter: deny,
          mob-spawning: deny}
        max: {z: 165.0, y: 127.0, x: 458.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
    
    _____________________________________________________-

    What Im mainly Foucsing on is the Claycity Region

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

    bassfader

    PLease post you permission config in a code tag so we can read it easier. Also I think you are missing the "permissions:" node for guests, it may confuse permissions. If you do not want them to have any permissions just do not list any below it, but AFAIK the node "permissions:" has to be there.

    BTW by giving all of your groups "*" permissions you effectively give everyone every permission, so they can basically do what they want... not good xD
     
    Klaki892 likes this.
  3. Offline

    Klaki892

    Um, Permissions Config Code tag? Sorry, i dont know how to do spoilers if thats what you mean :p. Found Out how to :p
    So Instead i uploaded the file If that Helps :)

    Also At the Very Top I have the Guest... but i think i see what you mean about the permissions node. I didnt place that under guest. so oops XD.

    (p.s I Have like 10 plugins so permissions were the VERY last thing i was going to do that's why everyone has "*" XD)

    EDIT: i Put the permissions node into guest, but still didnt seem to do anything lol.... they can still do whatever they please.
     

    Attached Files:

  4. Offline

    Klaki892

    bump....
     
  5. Offline

    bassfader

    Well could you be a bit more specific about what you are trying todo? You want a region were guests are not able to build, but other groups are?

    If so, delete the build flag of that region like this:
    /region flag [regionname] build

    Then just add the groups you want to be able to build inside the region as members like this:
    /region addmember [regionname] g:[groupname] g:[anothergroupname] g:[yetanothergroupname] ...

    (Without the [] of course)

    If thats not the case please state exactly what you are trying to do just in a short text, that makes it much easier to help ;)
     
  6. Offline

    Klaki892

    Ok, Ill try To explain, I Want Only Owners to be able to build in the city, And right now, Guests Can, i did what you previously said and no help. I want nobody other than the Group "Owners" to be able to build in the city.

    But, Everyone else can build outside of the City.

    does that help explain? :)
     
  7. Offline

    bassfader

    Then just do what I said in my last post and it will work (but remember even if somebody is in the group guests but is OP - his nickname is in the ops.txt file - he will still be able to build, and also every group that has the "*" permission will too be able to build).

    Just do:
    /region flag [regionname] build
    /region addmember [regionname] g:OWNERS

    That should do the trick.
     
  8. Offline

    Klaki892

    Ok, So what i Should do is, Delete the current Build flag(or not). then follow the steps? (almost useless question but making sure XD)
     
  9. Offline

    bassfader

    The steps include deleting the build flag... Just give it a try, if thats not working some other configuration is messed up (like permissions, ops, etc..)
     
  10. Offline

    Klaki892

    So delete the build flag, and then create another? or no?
     
  11. Offline

    bassfader

     
  12. Offline

    Klaki892

    *Sigh* it didnt work, want me to list my plugins?
     
  13. Offline

    bassfader

    What exactly didn't work? People can still build? No one can build? Error while entering command?

    Also:
    - Which permissions are you using (Plugin, version, etc...)?
    - Please post your (current) permissions user config file (including filename and directory so I know if you have taken the right permissions file)
    - Please post your (current) permissions group config file (including filename and directory so I know if you have taken the right permissions file)
    - Please post your (current) regions.yml file from WorldGuard of the world where you are trying to do this
    - Whats the name of the region you are trying to protect?

    EDIT: By "current" I mean the new one, after you entered the commands I told you
     
  14. Offline

    Klaki892

    People can still build. anddddd...

    I got My Permissions file exatly from here, and i confirmed it when i looked at the server console that it is 3.1.6 http://forums.bukkit.org/threads/admn-dev-permissions-3-1-6-the-plugin-of-tomorrow-935.18430/

    User Config, Also The reason there are so many is becuase i use citizens plugin. so it may take sometime to find guest EDIT: hes second to bottom :p :

    Code:
    C:\Users\Klayton\Desktop\Minecraft Server\plugins\Permissions\world\users.yml
    
    users:
        Klaki892:
            permissions: []
            groups:
            - OWNERS
        L33T_HACK0R:
            permissions: []
            groups:
            - Guests
        Jack:
            permissions:
            groups:
            - Guests
        Guard:
            permissions:
            groups:
            - Guests
        Jason:
            permissions:
            groups:
            - Guests
        Miner:
            permissions: []
            groups:
            - Guests
        Ezreal:
            permissions:
            groups:
            - Guests
        Bookstore Clerk:
            permissions: []
            groups:
            - Guests
        Blacksmith:
            permissions:
            groups:
            - Guests
        Blacksmith's son:
            permissions:
            groups:
            - Guests
        Command Tutor:
            permissions:
            groups:
            - Guests
        Amy:
            permissions:
            groups:
            - Guests
        bob:
            permissions:
            groups:
            - Guests
        Sam:
            permissions:
            groups:
            - Guests
        TheOnlyLavaster:
            permissions:
            groups:
            - Guests
        Desmond:
            permissions:
            groups:
            - Guests
        James:
            permissions:
            groups:
            - Guests
        pwnage:
            permissions:
            groups:
            - Guests
        Klayton:
            permissions:
            groups:
            - Guests
        Doctor:
            permissions:
            groups:
            - Guests
        nurse:
            permissions:
            groups:
            - Guests
        guest:
            permissions:
            groups:
            - Guests
        nether Dweler:
            permissions:
            groups:
            - Guests
    
    Now, On to the Groups....

    Code:
    C:\Users\Klayton\Desktop\Minecraft Server\plugins\Permissions\world\groups.yml
    
    groups:
        Guests:
            default: true
            info:
                prefix: '[newbie]'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            -
    
        Member:
            default: false
            info:
                prefix: '[MEMBER]'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - warpplugin.warp
            - econplugin.basic.*
            - '*'
        Moderator:
            default: false
            info:
                prefix: '[MODERATOR]'
                suffix: ''
                build: true
            inheritance:
            - Member
            permissions:
            - modplugin.ban
            - modplugin.kick
            - modplugin.unban
            - '*'
        Admins:
            default: false
            info:
                prefix: '[ADMIN]'
                suffix: ''
                build: true
            inheritance:
            - Moderator
            permissions:
            - '*'
        OWNERS:
            default: false
            info:
                prefix: '[OWNER]'
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
        Default:
            permissions:
            inheritance:
    track:
    - Guests
    - Member
    - Moderator
    - Admins
    - OWNERS
    
    And Last, But certainly not least The regions:

    Code:
    C:\Users\Klayton\Desktop\Minecraft Server\plugins\WorldGuard\worlds\world\regions.yml
    
    #
    # WorldGuard regions file
    #
    # WARNING: THIS FILE IS AUTOMATICALLY GENERATED. If you modify this file by
    # hand, be aware that A SINGLE MISTYPED CHARACTER CAN CORRUPT THE FILE. If
    # WorldGuard is unable to parse the file, your regions will FAIL TO LOAD and
    # the contents of this file will reset. Please use a YAML validator such as
    # http://yaml-online-parser.appspot.com (for smaller files).
    #
    # REMEMBER TO KEEP PERIODICAL BACKUPS.
    #
    regions:
      pvp:
        min: {z: 17.0, y: 71.0, x: 445.0}
        flags: {pvp: deny, tnt: deny, mob-damage: allow, build: deny, lighter: deny, mob-spawning: deny,
          snow-fall: deny}
        max: {z: 22.0, y: 72.0, x: 456.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
      start:
        min: {z: 172.0, y: 54.0, x: 445.0}
        flags: {}
        max: {z: 178.0, y: 58.0, x: 451.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
      claycity:
        min: {z: 24.0, y: 0.0, x: 421.0}
        flags: {creeper-explosion: deny, pvp: deny, greeting: Welcome to Clay City!, farewell: You are Leaving Claycity! Good Luck out there!,
          passthrough: allow, tnt: deny, mob-damage: deny, lighter: deny, mob-spawning: deny,
          snow-fall: deny}
        max: {z: 127.0, y: 127.0, x: 476.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members:
          groups: [owners]
      klay's_house:
        min: {z: 55.0, y: 0.0, x: 429.0}
        flags: {notify-enter: true, build: deny}
        max: {z: 63.0, y: 127.0, x: 437.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
      tut:
        min: {z: 132.0, y: 0.0, x: 438.0}
        flags: {creeper-explosion: deny, pvp: deny, tnt: deny, build: deny, lighter: deny,
          mob-spawning: deny}
        max: {z: 165.0, y: 127.0, x: 458.0}
        priority: 0
        type: cuboid
        owners:
          players: [klaki892]
        members: {}
    
    
    And The Name Of the region Im trying to get to work is "claycity"
     
  15. Offline

    bassfader

    Try it with this groups.yml file AND make sure that "guest" is not OP (so he must not be listed in the ops.txt file):
    Code:
    groups:
        Guests:
            default: true
            info:
                prefix: '[newbie]'
                suffix: ''
                build: true
            inheritance:
            permissions:
        Member:
            default: false
            info:
                prefix: '[MEMBER]'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - warpplugin.warp
            - econplugin.basic.*
            - '*'
        Moderator:
            default: false
            info:
                prefix: '[MODERATOR]'
                suffix: ''
                build: true
            inheritance:
            - Member
            permissions:
            - modplugin.ban
            - modplugin.kick
            - modplugin.unban
            - '*'
        Admins:
            default: false
            info:
                prefix: '[ADMIN]'
                suffix: ''
                build: true
            inheritance:
            - Moderator
            permissions:
            - '*'
        OWNERS:
            default: false
            info:
                prefix: '[OWNER]'
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
    track:
    - Guests
    - Member
    - Moderator
    - Admins
    - OWNERS
     
  16. Offline

    Klaki892

    Nope Guest Can still build, and heres the Op File just for sure:
    Code:
    klayton
    klaki892
    
    And Heres the Plugin list if it helps:
    Show Spoiler
    Code:
    Administrate
    AuthMe
    BukkitContrib
    Citizens
    Essentials ( i dont know what thing, just says essentials, when i look at files its just jail and crap
    HeroChat
    HeroicDeath
    iConomy
    LogBlock
    MagicCarpet
    MotherNature
    Permissions
    TimeShift
    WorldEdit
    Worldguard
    


    bump :p

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

    bassfader

    Please enter the following commands and tell me what result it shows you for each of these commands (easiest way I guess would be to run these from the Console - there without the "/" at the beginning - so you can just copy and paste the results here):
    /pr guest parents list
    /pr guest parents listall
    /pr guest perms list
    /pr guest perms listall
     
  18. Offline

    Klaki892

    kk
    pr guest parents list (in consle)
    Code:
    >pr guest parents list
    10:41:12 [INFO] [Permissions] No world specified. Defaulting to default world.
    10:41:12 [INFO] [Permissions] Parents: Group Guests in world
    
    pr guest parents listall
    Code:
    >pr guest parents listall
    10:42:47 [INFO] [Permissions] No world specified. Defaulting to default world.
    10:42:47 [INFO] [Permissions] Parents: Group Guests in world
    
    pr guest perms list
    Code:
    >pr guest perms list
    10:43:29 [INFO] [Permissions] No world specified. Defaulting to default world.
    10:43:29 [INFO] [Permissions] User/Group has no non-inherited permissions.
    
    pr guest perms listall
    Code:
    >pr guest perms listall
    10:44:28 [INFO] [Permissions] No world specified. Defaulting to default world.
    10:44:28 [INFO] [Permissions] User/Group has no permissions.
    
     
  19. Offline

    bassfader

    Well according to that it really should work, except he is OP but as you listed your ops.txt thats not the case. So it must be something else that makes it not work.

    I could join your server and give it a try if you want me to, but I can't guarantee anything as it could be almost anything. The permissions configuration seems to be correct, also the region settings seem to be fine too.
     
  20. Offline

    Klaki892

    Alright, um... can you tell me what would be a good time for you to get on? because after that i think ima just add the plugins 1 by 1 to see if anything else bothers it.
     
  21. Offline

    bassfader

    Good time for me would be somewhat around 8pm to 9pm tomorrow (or its today actually, sunday ^^).

    But be aware of the different time zones, for me its now exactly 3:40am, may be different for you.
     
  22. Offline

    Klaki892

    ok ur six hours ahead of me, got it... want me to use hamachi or just my plain ip?
     
  23. Offline

    bassfader

    Plain IP would be better since I do not have Hamachi installed and didn't really plan to do so ^^
     
  24. Offline

    Klaki892

    lol kk ill pm u the ip.
     
  25. Offline

    coryorth

    Is there a way to make a region within another region that allows building while the larger region does not?
    To explain. I have a survival server with a defined region with no build set within it. But I am trying to define a region within that region to allow players to buy land with the "Residence" plugin. Is there a way to arrange this without going through the hassle of defining like 4-6 different regions within the castle walls?(Castle walls=Defined region)
     
  26. Offline

    Klaki892

    Priorites man, make them and then it should work
     
  27. Offline

    Teh_Burger_King

    None of my regions work. Anyone can build. Even if they use a string on a block inside a region it says they cant build but they can anyways.
     
Thread Status:
Not open for further replies.

Share This Page