[Bukkit guide] Permissions

Discussion in 'Bukkit Help' started by zipron, Dec 17, 2011.

?

Did this guide help you?

  1. Yes

    18 vote(s)
    52.9%
  2. A bit

    11 vote(s)
    32.4%
  3. No

    5 vote(s)
    14.7%
Thread Status:
Not open for further replies.
  1. Offline

    zipron

    post it between
    Code:
    [CODE]
    please
     
  2. Offline

    esptigers

    oh, thats how you do it, ok
    Code:
    Users:
    ethan711:
    subgroups: []
    permissions:
    - -essentials.tpa
    group: Admin
    groups:
    Member:
    default: true
    permissions:
    - essentials.sethome
    - essentials.delhome
    - essentials.tpa
    - essentials.tpaccept
    - essentials.tpdeny
    inheritance: []
    info:
    prefix: '&7[Member]'
    build: true
    suffix: ''
    Admin:
    default: false
    permissions:
    - permissions.*
    - sidkeick.*
    - niftywarp.*
    - essentials.*
    inheritance:
    - Member
    info:
    prefix: '&b[Admin]'
    build: true
    suffix:
     
  3. Offline

    zipron

    you have your spacing wrong (if you copied this from your permissions.yml file at least) check the guide for a full explanation =)

    zip
     
  4. Offline

    esptigers

    ok thanks for your time and everything, you are a big help to my growing server and communite, and i dont know how to thank you.
     
  5. Offline

    Darkvoltage3

    What if you don't want the Users to get permissions because I find this kind of useless because why would you make a group with permissions already in it just to put the same permission on a single player :confused:?

    users:
    Zipron:
    subgroups: []
    permissions:
    - -essentials.tpa <========
    group: Member
    Administrator:
    subgroups: []
    permissions: []
    group: Admin

    groups:
    Newcomer:
    default: true
    permissions:
    - essentials.rules <========
    inheritance: []
    info:
    prefix: '&7[Newcomer] '
    build: false
    suffix: ''

    And also every setup I see of permissions Ex seems to be different every Tutorial or setup I do.
     
  6. Offline

    zipron

    Hmm, I'm not sure, but I think PEX will check first the group permissions and than the player permissions (reads the permission file from top to bottom) That means that if you want to deny a single player from a command, you won't be able to if that node already has been giving somewhere above in the yml file.

    Never tried this before but whar might solve your problem is by putting the full user config above the group config?

    yw =)

    zip
     
  7. Offline

    Darkvoltage3

    is this a way to stop the issue or....
     
  8. Offline

    zipron

    Could be, or maybe I got your question wrong, could also be =D
     
  9. Offline

    Darkvoltage3

    Ok, scratch that. i have a problem and I cant figure it out in my permissions i cant seem to find whats wrong my guess is that I didnt line everything up correctly it keeps saying this both in the terminal and YML checker:


    Code:
    ERROR:
     
    while parsing a block mapping
      in "<unicode string>", line 39, column 3:
          leadhead2015:
          ^
    expected <block end>, but found '<block sequence start>'
      in "<unicode string>", line 41, column 5:
            - Admin
            ^
    I've looked at multiple threads on how to set up Permissions Ex and they all seem to be different so its kind of hard to find the correct way on how to set this up this is what I have in my Permissions File:

    Code:
    groups:
      default:
        default: true
        permissions:
        - modifyworld.*
      Guest:
        prefix: '&7(&7Guest&7)&f'
        permissions:
        - '*'
      Admin:
        prefix: '&e(&eImmortal&f)&f'
        permissions:
        - '*'
      Moderator:
        prefix: '&e(&eDivine&f)&f'
        permissions:
        - '*'
      Free Member 1:
        prefix: '&7(&7Hunter&f)&f'
        permissions:
        - '*'
      Free Member 2:
        prefix: '&7(&7Siegemen&f)&f'
        permissions:
        - '*'
      Free Member 3:
        prefix: '&7(&7Aztainain&f)&f'
        permissions:
        - '*'
      Free Member 4:
        prefix: '&7(&7Woodelf&f)&f'
        permissions:
        - '*'
      Donator 1:
        prefix: '&7(&7Windcaster&f)&f'
        permissions:
        - '*'
    users:
      leadhead2015:
        group:
        - Admin
        permissions:
        - permissions.*
      bennoo:
        group:
        - Admin
        permissions:
        - permissions.*
      spookycheese505:
        group:
        - Moderator
        permissions:
        - permissions.*
      reaver456:
        group:
        - Moderator
        permissions:
        - permissions.*
      hichmage:
        group:
        - Moderator
        permissions:
        - permissions.*
      aliboy11:
        group:
        - Admin
        permissions:
        - permissions.*
      grazer46:
        group:
        - Moderator
        permissions:
        - permissions.*
    
    Anywhere I went wrong?
     
  10. Offline

    zipron

    Hmm, don't really see a problem, but you do know you can add people to a group using ingame commands? that way you're 100% sure they're added correctyle, so clear your users list and add them ingame to a group
    pex user <user> group add <group>




    zip
     
  11. Offline

    Darkvoltage3

    ok I will try that.
     
  12. Offline

    Omnitv

    Great forum zipron will use for reference.
    Cookie for you.
     
    zipron likes this.
  13. Offline

    411owen411

    It all makes sense :)
     
  14. Offline

    zipron

    you see =)
     
  15. Offline

    MailingYourMail

    Hey I have some troubles, with my permission.yml file.
    When I start the server it says:
    "[warning] Server permissions file permissions.yml is not valid yaml: ex in "<reader>", line 12, column 1: groups:"
    (code image: http://img259.imageshack.us/img259/8396/ylmcodeproblem.png)
    It says its line 12, but I have no clue what I have miss coded.
    Maybe you can help, zip. (Note: I copied the codes that you have in this guide, and remade a few things, so they fits for my choice)
     
  16. Offline

    zipron

    it's the "..." above the groups: node, line 11. the error said it cannot parse from line 12, so the mistake is in line 11 =)
     
  17. Offline

    MailingYourMail

    Thx, the error message is gone, but its like its not loading the permission.yml.
    I tried to put myself in the "Newcomer" group, and logged in and tried to use "/warp home" command, but then it says that I don't have the permission to do so.
    (New code image: http://img687.imageshack.us/img687/5940/problem3f.png)
    I removed the "..."-line and that removed the error, but I feel like its not working. I also tried to put me in the Admin group, but that didnt work either.
    So can you tell me what im doing wrong, am I missing something??
     
  18. Offline

    zipron

    if you get a message in your server log when starting saying "PEX started" or something like that, it works =) make sure to check the rank you have ingame.

    oh and
    Code:
    essentials.zp.warp.warp
    
    is not a valid node, if I recall correct it should be
    Code:
    essentials.warp
    
    or
    Code:
    essentials.warp.home
    
    you can check all the permission nodes on the essentials dev page.
     
  19. Offline

    MailingYourMail

    I tried doing what you said, but on the dev page it say its:
    Code:
    zp.warp
    [URL]http://dev.bukkit.org/server-mods/zport/pages/permissions/[/URL]
    
    and I tried using:
    Code:
    essentials.zp.warp
    
    But that did not work. Also it does not say "PEX started" on my console, when I start it up. So, am I missing something??

    Code:
    users:
      battleon1333:
        subgroups: []
        permissions:
        - -essentials.tpa
        group: Newcomer
      Administrator:
        subgroups: []
        permissions: []
        group: Admin
    groups:
      Newcomer:
        default: true
        permissions:
        - essentials.rules
        - essentials.zp.warp
        inheritance: []
        info:
          prefix: '&7[Newcomer] '
          build: false
          suffix: ''
      Member:
        default: false
        permissions:
        - essentials.sethome
        - essentials.delhome
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpdeny
        inheritance:
        - Newcomer
        info:
          prefix: '&f'
          build: true
          suffix: ''
      Admin:
        default: false
        permissions:
        - essentials.*
        inheritance:
        - Member
        info:
          prefix: '&b[&f'
          build: true
          suffix: '&b]'
    
     
  20. Offline

    zipron

    it could say something else in your console log, I'm not sure, I don't use any permissions system anymore at the moment, but you can without any doubt find a command on the PEX wiki to check the rank of a user, so if you know this command, just use it for your own and you'll know if PEX works, and if you have the correct rank =)

    zip
     
  21. Offline

    Necrodoom

  22. Offline

    MailingYourMail

    I use zport warps
     
  23. Offline

    zipron

    than the node should be zp.warp if I'm not mistaken.
     
  24. Offline

    MailingYourMail

    Code:
    users:
      battleon1333:
        subgroups: []
        permissions:
        - -essentials.tpa
        group: Newcomer
      Administrator:
        subgroups: []
        permissions: []
        group: Admin
    groups:
      Newcomer:
        default: true
        permissions:
        - essentials.rules
        - zp.warp
        inheritance: []
        info:
          prefix: '&7[Newcomer] '
          build: false
          suffix: ''
      Member:
        default: false
        permissions:
        - essentials.sethome
        - essentials.delhome
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpdeny
        inheritance:
        - Newcomer
        info:
          prefix: '&f'
          build: true
          suffix: ''
      Admin:
        default: false
        permissions:
        - essentials.*
        inheritance:
        - Member
        info:
          prefix: '&b[&f'
          build: true
          suffix: '&b]'
    I tried using what you said, and im not sure if it worked, because its like its not loading the permission file.
    It does not come up with any sign on, that its loading the permission.yml
     
  25. Offline

    zipron

    ok, clear your server.log file and restart your server. Go ingame and try the zp warp command, than logout and copy-paste everything in your server.log here.
     
  26. Offline

    Necrodoom

    wait, what permission plugin is this? looks like you tried to compress groupmanager files into a single PEX permissions.yml
     
  27. Offline

    MailingYourMail

    I did what you told me to do, both with op and non-op, but the server.log.1 (there is no server.log)
    The op worked, but the second I was de-op it did not wanted to work. It just told me to use "/zp", but when I did that there was no commands, that I could use (as non-op)
    Also after I cleared the server.log.1, and restarted the server twice, it kept it self clean, there is nothing writen in that file, so the part of me sharing that is going to be pretty hard, since its empty.

    I do not use the PEX-plugin, that your talking about, so I only got that one file to edit with (not sure if PEX, have more then one, because I've never used it)

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

    zipron

    Of course server.log.1 keeps clean, you should rename it to server.log. And you mentioned you don't use PEX? that's an issue because this tutorial is about PEX :)
     
  29. Offline

    mikeymillion

    hello mate if u can just add me on skype and tell me what to do because i dont undersstand that
    mikey.million1
     
  30. Offline

    zipron

    It's pretty straight-forward, that's why I wrote the guide =) download PEX and follow the guide, and it will work =) I don't have skype on Ubuntu so I won't be able to help you that way =)

    zip
     
Thread Status:
Not open for further replies.

Share This Page