How do I setup user permissions?

Discussion in 'Bukkit Help' started by xIChaosKingIx, Jan 8, 2013.

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

    xIChaosKingIx

    Hi guys, so i just got a server through multicraft and I'm not to sure how to set it up so that specific users are admins and other users are limited. I dont want my server to have 30 OPed ppl that can run around and do whatever they want. If i could i would like it so that theres a few with admin that are regulars and the normal users are limited. What file is it that i modify to do this? Also how would i go about typing that in? If anyone can maybe send me or copy in here an example of their file on what it should look like and how you type it up. I dont understand to well. Thanks for the help!

    also, surver is running craft bukkit 1.4.6

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

    Necrodoom

    you need a permission plugin, first off.
     
  3. Offline

    xIChaosKingIx

    Ok so i have set up PEX and i have followed the guide listed here to set up my permissions.yml
    http://forums.bukkit.org/threads/bukkit-guide-permissionsex-pex.60312/

    I'm not sure what is wrong with the coding buttheres a few things that don't work. a few of the /pex commands come back as internal errors and the listed users do not have their permissions. Also some permissions arent being inherited to the next groups. If someone has the time can they peek through my permissions file and see if i have errors. to my knowledge i have set it up correctly.
    Code:
    users:
        xichaoskingix
            group:
            - Admin
        oriolesfanvb
            group:
            - Admin
        burgermiester11
            group:
            - Admin
        tyler402
            group:
            - Co_Owner
        aj11727
            group:
            - Owner
    groups:
        pvp:
            default: false
            permissions:
            - -'*'
            - modifyworld.bucket.*
            - modifyworld.blocks.*
            - modifyworld.items.*
            - modifyworld.damage.*
            - modifyworld.vehicle.*
            - -jobs.admin.*
            - -factions.money.withdraw.any
            - essentials.ignore
            - essentials.mail
            - essentials.mail.send
            - essentials.motd
            - essentials.msg
            - essentials.r
            - essentials.reply
            - essentials.rules
            - essentials.spawn
            - essentials.warp
            - factions.admin
            - factions.chat
            - factions.claim
            - factions.create
            - factions.deinvite
            - factions.description
            - factions.disband
            - factions.help
            - factions.home
            - factions.invite
            - factions.join
            - factions.kick
            - factions.leave
            - factions.list
            - factions.mod
            - factions.money.*
            - factions.money.balance
            - factions.money.balance.any
            - factions.money.deposit
            - factions.money.withdraw
            - factions.owner
            - factions.ownerlist
            - factions.power
            - factions.power.any
            - factions.relation
            - factions.sethome
            - factions.show
            - factions.tag
            - factions.title
            - factions.unclaim
        Grunt:
            default: true
            permissions:
            - essentials.money
            - essentials.sell all
            - factions.f leave
            - factions.f inv
            - factions.f join
            - factions.f create
            - essentials.tpdeny
            - essentials.tpaccept
            - essentials.tpa
            - essentials.rules
            - essentials.warp
            inheritance:
            options:
                rank: 500
            worlds:
                world_pvp:
                    permissions: []
                    inheritance:
                    - pvp
                    prefix: '&4[PvP] &f'
                world_pvp_nether:
                    inheritance:
                    - pvp
                    prefix: '&4[PvP] &f'
                world_pvp_the_end:
                    inheritance:
                    - pvp
                    prefix: '&4[PvP] &f'
            prefix: '&9[Grunt]'
            suffix: ''
      Iron:
            default: false
            permissions:
            - modifyworld.bucket.*
            - modifyworld.blocks.*
            - modifyworld.blocks.place.*
            - modifyworld.blocks.interact.*
            - modifyworld.items.*
            - modifyworld.damage.*
            - modifyworld.vehicle.*
            - essentials.back
            - essentials.back.ondeath
            - essentials.clearinventory
            - essentials.delhome
            - essentials.help
            - essentials.home
            - essentials.ignore
            - essentials.mail
            - essentials.mail.send
            - essentials.motd
            - essentials.msg
            - essentials.r
            - essentials.reply
            - essentials.rules
            - essentials.sethome
            - essentials.spawn
            - essentials.tpaccept
            - essentials.tpdeny
            - essentials.warp
            inheritance:
            - Grunt
            options:
                rank: 300
            worlds:
                world_pvp:
                    permissions: []
                    inheritance:
                    - pvp
                    prefix: '&4[PvP] &f'
                world_pvp_nether:
                    inheritance:
                    - pvp
                    prefix: '&4[PvP] &f'
                world_pvp_the_end:
                    inheritance:
                    - pvp
                    prefix: '&4[PvP] &f'
                world_creative:
                    inheritance:
                    - guest
            prefix: '&7[Iron]'
            suffix: ''
        Gold:
            default: false
            permissions: []
            inheritance:
            - Iron
            options:
                rank: 150
            worlds: []
            prefix: '&6[Gold]'
            suffix: ''
        Diamond:
            default: false
            permissions: []
            inheritance:
            - Gold
            options:
                rank: 50
            worlds: []
            prefix: '&1[Diamond]'
            suffix: ''
        Moderator:
            default: false
            permissions: []
            inheritance:
            - Diamond
            options:
                rank: 10
            worlds: []
            prefix: '[Mod]'
            suffix: ''
        Admin:
            default: false
            permissions:
            - '*'
            - colorme*
            - signshop*
            - worldedit*
            inheritance:
            - Moderator
            options:
                rank: '5'
            prefix: '&3[Admin] &f'
        Co_Owner:
            default: false
            permissions:
            - '*'
            inheritance:
            - Admin
            options:
                rank: '2'
            prefix: '&3[Co_Owner] &f'
        Owner:
            default: false
            permissions:
            - '*'
            inheritance:
            - Co_Owner
            options:
                rank: '1'
            prefix: '&3[Owner] &f'
    Also, here is what is in the config file.
    Code:
    permissions:
      backend: file
      backends:
        file:
          file: permissions.yml
      superperms: {}
    

    This was my first time setting up a permissions with such depth for a friends public server. So im pretty sure there is mitakes but im not sure where. any help?
     
  4. Offline

    zipron

    Check out my PEX guide, a step by step explanation to set up permissions correctly =)

    zip
    (link is in my signature)
     
  5. Offline

    xIChaosKingIx

    well that's the thing bud, i DID use your guide the best I could. To my knowledge i did everything it said to do.
     
  6. Offline

    Lolmewn

    Try looking up the PEX wiki, also available on their Github. Especially the 'Commands' page is really useful.
     
  7. Offline

    xIChaosKingIx

    I'll give it a shot. not sure how much its gona help me. Im pretty sure that the user portion in the yml dosent work. and if you do a /pex command i dont think it works but when you hit enter liek the entire pex help list with all the pex commands pops up in chat after the command.

    This comes up in the console for some reason. as you can see in a previous post my permissions isnt empty
    10.01 02:01:14 [Server] Startup Done (2.884s)! For help, type "help" or "?"
    10.01 02:01:14 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    10.01 02:01:14 [Server] INFO v2.5.1Dev Enabled
    10.01 02:01:14 [Server] INFO Vault's permissions not found, defaulting to OP

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

    PolarCraft

    If your using pex put your perms in the folder for pex!
     
  9. Offline

    xIChaosKingIx

    Polar What do you mean? My PEX perms are with the PEX config file in server/plugins/pex. however i went to FTP file access and there is a Perms file in/server. when i delete it, it comes back. Im guessing there is a conflict between the pluging perms and the default perms? how is this fixed?
     
  10. Offline

    PolarCraft

    Wait did you also put the permissions.yml in the root of your server?
     
  11. Offline

    xIChaosKingIx

    after going to PEX perms and (Copy pasting) the pex perms to the /server default perms file this comes up
    10.01 02:18:48 [Server] Startup Done (2.838s)! For help, type "help" or "?"
    10.01 02:18:48 [Server] INFO ^
    10.01 02:18:48 [Server] INFO Iron:
    10.01 02:18:48 [Server] INFO in "<reader>", line 102, column 4:
    10.01 02:18:48 [Server] INFO expected <block end>, but found BlockMappingStart
    10.01 02:18:48 [Server] INFO ^
    10.01 02:18:48 [Server] INFO users:
    10.01 02:18:48 [Server] INFO in "<reader>", line 1, column 1:
    10.01 02:18:48 [Server] WARNING Server permissions file permissions.yml is not valid YAML: while parsing a block mapping
    10.01 02:18:48 [Server] INFO v2.5.1Dev Enabled
    10.01 02:18:48 [Server] INFO Vault's permissions not found, defaulting to OP.

    I guess its rooting to that default file. but i dunno how to make it read PEX file.

    yeah i've looked over it all and ive got no idea what to change to fix the root problem or the other stuff haha. sorry guys im new to it

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

    xIChaosKingIx

    bump, still need input. how do i reroot and fix those errors?
     
  13. Offline

    Scipione

    check your spacing in the permissions.yml
    you can't work with tab, you need to work with spaces and also need the correct number of spaces for yml-files.
    Also post complete error log, what have you done now last ? copied the server permissions into pex permissions ?
     
  14. Offline

    xIChaosKingIx

    The spacing is: "users" and "groups" are set to the far left, under those specified users and groups are 8 spaces in. under are the perms which are 8 also aligned with the previous. Right now my status is: Server default .yml is blank. PEX is disabled and it has the above permissions written. Pex perms arent rooting properly. And when i ENABLE the PEX pluggin no commands work. its as if the pluggin dosent load? as for the error log, its very short for some reason being on multicraft and thats the only code that comes up for perms. also if i type my perm.yml into a perser. this comes up as the errors. ERROR:

    while parsing a block mapping
    in "<unicode string>", line 1, column 1:
    users:
    ^
    expected <block end>, but found '<block mapping start>'
    in "<unicode string>", line 102, column 4:
    Iron:
    ^
     
  15. Offline

    Scipione

    your spacing is messed up. Everytime you need spacing, there should only be 2 spaces.
    Example:
    Users
    ->2Spaces Name

    (dont write "->2Spaces" as word ^^)
    you may parse your permissions.yml here: http://ess.khhq.net/yaml/
    It will show an error an mark the line BEHIND the spacing error
     
  16. Offline

    xIChaosKingIx

    Ok i will edit it now and make it 2 isnted of 4 spaces for all of those lines so it should be:

    Users:
    2space names
    4space perms
    yes?
     
  17. Offline

    Scipione

    yap, everytime you need to indent add 2 spaces
     
  18. Offline

    xIChaosKingIx

    ok i fixed the spacing for the entire yml. every line had 2 spaces removed since i was going by 4. here is the code now
    Code:
    users:
      xichaoskingix:
          group:
          - Admin
      oriolesfanvb:
          group:
          - Admin
      burgermiester11:
          group:
          - Admin
      tyler402:
          group:
          - Co_Owner
      aj11727:
          group:
          - Owner
    groups:
      pvp:
          default: false
          permissions:
          - -'*'
          - modifyworld.bucket.*
          - modifyworld.blocks.*
          - modifyworld.items.*
          - modifyworld.damage.*
          - modifyworld.vehicle.*
          - -jobs.admin.*
          - -factions.money.withdraw.any
          - essentials.ignore
          - essentials.mail
          - essentials.mail.send
          - essentials.motd
          - essentials.msg
          - essentials.r
          - essentials.reply
          - essentials.rules
          - essentials.spawn
          - essentials.warp
          - factions.admin
          - factions.chat
          - factions.claim
          - factions.create
          - factions.deinvite
          - factions.description
          - factions.disband
          - factions.help
          - factions.home
          - factions.invite
          - factions.join
          - factions.kick
          - factions.leave
          - factions.list
          - factions.mod
          - factions.money.*
          - factions.money.balance
          - factions.money.balance.any
          - factions.money.deposit
          - factions.money.withdraw
          - factions.owner
          - factions.ownerlist
          - factions.power
          - factions.power.any
          - factions.relation
          - factions.sethome
          - factions.show
          - factions.tag
          - factions.title
          - factions.unclaim
      Grunt:
          default: true
          permissions:
          - essentials.money
          - essentials.sell all
          - factions.f leave
          - factions.f inv
          - factions.f join
          - factions.f create
          - essentials.tpdeny
          - essentials.tpaccept
          - essentials.tpa
          - essentials.rules
          - essentials.warp
          inheritance:
            options:
              rank: 500
          worlds:
              world_pvp:
                  permissions: []
                  inheritance:
                  - pvp
                  prefix: '&4[PvP] &f'
              world_pvp_nether:
                  inheritance:
                  - pvp
                  prefix: '&4[PvP] &f'
              world_pvp_the_end:
                  inheritance:
                  - pvp
                  prefix: '&4[PvP] &f'
          prefix: '&9[Grunt]'
          suffix: ''
      Iron:
          default: false
          permissions:
          - modifyworld.bucket.*
          - modifyworld.blocks.*
          - modifyworld.blocks.place.*
          - modifyworld.blocks.interact.*
          - modifyworld.items.*
          - modifyworld.damage.*
          - modifyworld.vehicle.*
          - essentials.back
          - essentials.back.ondeath
          - essentials.clearinventory
          - essentials.delhome
          - essentials.help
          - essentials.home
          - essentials.ignore
          - essentials.mail
          - essentials.mail.send
          - essentials.motd
          - essentials.msg
          - essentials.r
          - essentials.reply
          - essentials.rules
          - essentials.sethome
          - essentials.spawn
          - essentials.tpaccept
          - essentials.tpdeny
          - essentials.warp
          inheritance:
          - Grunt
          options:
              rank: 300
          worlds:
              world_pvp:
                  permissions: []
                  inheritance:
                  - pvp
                  prefix: '&4[PvP] &f'
              world_pvp_nether:
                  inheritance:
                  - pvp
                  prefix: '&4[PvP] &f'
              world_pvp_the_end:
                  inheritance:
                  - pvp
                  prefix: '&4[PvP] &f'
              world_creative:
                  inheritance:
                  - guest
          prefix: '&7[Iron]'
          suffix: ''
      Gold:
          default: false
          permissions: []
          inheritance:
          - Iron
          options:
              rank: 150
          worlds: []
          prefix: '&6[Gold]'
          suffix: ''
      Diamond:
          default: false
          permissions: []
          inheritance:
          - Gold
          options:
              rank: 50
          worlds: []
          prefix: '&1[Diamond]'
          suffix: ''
      Moderator:
          default: false
          permissions: []
          inheritance:
          - Diamond
          options:
              rank: 10
          worlds: []
          prefix: '[Mod]'
          suffix: ''
      Admin:
          default: false
          permissions:
          - '*'
          - colorme*
          - signshop*
          - worldedit*
          inheritance:
          - Moderator
          options:
              rank: '5'
          prefix: '&3[Admin] &f'
      Co_Owner:
          default: false
          permissions:
          - '*'
          inheritance:
          - Admin
          options:
              rank: '2'
          prefix: '&3[Co_Owner] &f'
      Owner:
          default: false
          permissions:
          - '*'
          inheritance:
          - Co_Owner
          options:
              rank: '1'
          prefix: '&3[Owner] &f'
    
    EDIT: I fixed that line of code. now in the parser the entire yml comes out as its pasted in the input. input and output match
     
  19. Offline

    Scipione

    good, whats now happening when you start the server ?
     
  20. Offline

    xIChaosKingIx

    I deleted PEX and reinstalled it to the server. now when i type /pex a huge white list of pex commands pops up. I cant use commands, literally /pex "anything" brings up a lot of random pex commands. so i know the plugin is working but im pretty sure the server isnt reading/rooting to the PEX perms file. instead the default.

    i take that back. /pex user brought up the users. I guess it IS working now?

    one thing i have noticed if that my prefixes arent working. admin names I believe are coded to be red. and "Admin" isnt being generated in front of my name. Why is that?

    Another thing I noticed:
    While in game a user connected and was tagged as grunt i tried to use the promotion command to get them into the next group on the perms and It said "Promotion Error: User are not in this ladder. Error in command syntax. Check command help." Does that mean I typed the command wrong? I used /pex promote "user" "Iron" group

    Yeah im running into an issue with promoting. When i typer /promote "user" it says error in command syntax. I knew promoting and inheritances were a little broken. but do i have to specifically set up each individual regular user to the server?

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

    Dragonphase

    xIChaosKingIx

    Use the following command:

    /pex promote <user>

    Note that you can't actually issue any PermissionsEx commands in-game without the following permissions node:

    permissions.*
     
  22. Offline

    xIChaosKingIx

    That node has to go in the permissions.yml for pex commands to work? insert it in the admin group under permissions?

    Even with that node in the perms.yml it either says error in command syntax or that user isnt in that ladder? promoting is broken and i have no idea whats wrong.

    If i type /pex promote "myusername" it says im not a high enough rank to promote thiat persons ranks. If i type anyone else username it either says they arent in that ladder or error in syntax

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 8, 2016
Thread Status:
Not open for further replies.

Share This Page