Permissions FAQ

Discussion in 'Plugin Development' started by Dinnerbone, Jul 7, 2011.

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

    Celtic Minstrel

    Besides the three already mentioned, the only other permissions manager I know of is zPermissions. It doesn't have a config file at all (uses SQL instead).
     
  2. Offline

    codename_B

    It has customisable commands, including the ability to do just that.
     
  3. Offline

    Hotshot

    Im making a plugin and I need the group names and everyone thats in those groups... How do i go about importing that info into my plugin?

    Is there any other way beside giving people commands? Like using a separate plugin or something?
     
  4. Offline

    Celtic Minstrel

    Why do you need group names and who's in them?
     
  5. Offline

    Hotshot

    Im setting up an autopay system were everyone's wages are paid automatically... Each group gets paid a different amount.
     
  6. Offline

    Gotomtom95

    i have the feeling i might be getting this whole permissions.yml a bit wrong

    i'm using it to create permission nodes of existing plugins with existing permissions. my question: am i doing this right?
    code:
    Show Spoiler

    (i just copied a small bit of it)
    permissions.yml:
    Code:
    permissions:
        colors.all:
            children:
                colors.hex: true
                colors.rainbow: true
                colors.admin: true
                colors.prefix: true
                colors.suffix: true
                colors.reload: true
        worldwarp.all:
            children:
                WorldWarp.wcreate: true
                WorldWarp.wdelete: true
                WorldWarp.wwarp: true
                WorldWarp.wlist: true
    
    config.yml of permissionsBukkit:
    Code:
    groups:
        default:
            permissions:
                worldwarp.all: false
                colors.all: false
        user:
            permissions:
            inheritance:
            - default
        admin:
            permissions:
                worldwarp.all: true
                colors.all: true
    


    Edit:
    well, i must be acording to this wiki http://wiki.multiplay.co.uk/Minecraft/Bukkit/PermissionsBukkit
    but still it doesn't seem to work properly sometimes

    Edit 2:
    got it, it was the permissions: on top of all it that was blocking the stuff :$
     
  7. Offline

    Celtic Minstrel

    Yup, that's the sole difference between permissions.yml permissions and plugin.yml permissions. :)

    @Hotshot – I see. You can either hope that everyone in group XYZ has the permission "group.XYZ" and no other similar permission, or you can support each of the main four permissions systems (PermissionsBukkit, bPermissions, zPermissions, PermissionsEx) separately. Or you could be a permissions manager yourself, but that sounds like it might be a bit much.
     
  8. Offline

    Hotshot

    What other plugin would provide that?
     
  9. Offline

    Celtic Minstrel

    I listed them in the post just above yours.
     
  10. Offline

    goodoletom

    Hey, I am really confused. Can I have some help. Some permissions detect it and some dont! How can you help me to fix this?
     
  11. Offline

    Starlight

    Why is there no information on how to set up permissions in the permissions.yml -file and no info about why more plugins are needded to get it to work.. The wiki has only outdated information and there are no examples of permissions strings with comments.. The file is just black!? I have no idea on how to do this!

    [Edit] Also the strings in the Bukkit file is not commented on..


    Code:
    settings:
      spawn-radius: 16
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
    aliases:
      icanhasbukkit:
      - version
    database:
      username: bukkit
      isolation: SERIALIZABLE
      driver: org.sqlite.JDBC
      password: walrus
      url: jdbc:sqlite:{DIR}{NAME}.db
    
     
  12. Offline

    Celtic Minstrel

    Bukkit.yml

    For permissions.yml, it's basically of this form:
    Code:
    my.permission.node:
      default: op # or true, or false, or notop
      children:
        some.other.node: true # or false
        yet.another.node: true
    
     
  13. Offline

    LennonLenford

    I'm completely confused with this new system.

    Code:
    users:
        ConspiracyWizard:
            permissions:
                permissions.example: true
            groups:
            - admin
    groups:
        default:
            permissions:
                permissions.build: false
        admin:
            permissions:
                permissions.*: true
                superpermbridge.waypoint: true
            inheritance:
            - user
        user:
            permissions:
                permissions.build: true
            worlds:
                creative:
                    coolplugin.item: true
            inheritance:
            - default
    messages:
        build: '&cYou do not have permission to build here.'
    What am I doing wrong? I want this plugin "http://forums.bukkit.org/threads/tp...ts-home-spawn-and-warp-management-1240.25992/" to work, but it still says I don't have permission to do that.
     
  14. Offline

    Celtic Minstrel

    If the config you posted is permissions.yml, you're doing it wrong. You still need a permissions plugin to give the permissions, unless you don't want to have groups beyond "op" and "not op".

    ...that said, it looks like you've posted a PermissionsBukkit config, so if it is in permissions.yml, just delete PermissionsBukkit's config.yml and move the permissions.yml into the PermissionsBukkit folder, renaming it to config.yml.

    Does that help?
     
  15. Offline

    Deathbagel

    Hey I'm working on setting up permissions too, and I couldn't find a better place to ask for help so here goes:

    Basically I get severe server errors when starting up my server, it seems due to my permissions (it worked fine before I started messing with them, plus the errors talk about groups.yml). To be clear I'm using the latest version of the mod "Permissions". My groups.yml is below:

    groups
    Noobynoob:
    default: true
    info:
    build: false
    prefix: 'Noobynoob &8'
    Knight:
    default: false
    info:
    build: true
    prefix: 'Sir &5'
    permissions:
    - worldguard.region.*
    - worldedit.clipboard.*
    - worldedit.region.*
    Duke:
    default: false
    info:
    build: true
    prefix: 'Duke &6'
    permissions:
    - '*'
    King:
    default: false
    info:
    build: true
    prefix: 'King &4'
    permissions:
    - '*'

    And my users.yml is the following:

    users:
    DEATHBAGEL
    groups:
    - King
    eggyeggyeggy
    groups:
    - Duke
    Proriginal
    groups:
    - Knight
    DWmaster
    groups:
    - Knight
    Dragonarus
    groups:
    - Knight
    Rahil757
    groups:
    - Knight

    What am I doing wrong? None of my changes seem to have taken effect. Also, these are the text files under Craftbukkit/plugins/permissions/[worldname]. I have worldedit, worldguard, and ichat installed in addition to permissions. Please help.

    Thank you,
    Deathbagel
     
  16. Offline

    LennonLenford

    The file I copy and pasted is the permissionsbukkit config, yet it still doesn't work.
     
  17. Offline

    dilo

  18. Offline

    dilo

    is @Dinnerbone no longer watching this thread or something
     
  19. Offline

    Evenprime

    You should just read what is written in the first post under "for plugin developers". That's all the information you need. What you want to do has absolutely nothing to do with PermissibleBase so that link, even if it would work, would give you nothing.

    @ everybody else: If you have a problem with setting up your permissions plugin, then go to the respective permission plugin thread and ask the developer.

    This thread isn't about "Permissions", the plugin, but about "Permissions", the concept.
     
  20. Offline

    dilo

     
  21. Offline

    cRiTiCaL_Shad0w

    Hey,

    i have a problem with the permissions.

    When i say : 'craftbukkit.command.time.set'
    Before i can do this i must opping this player. Why?
    When I´m opping a player and in permission there isn´t 'craftbukkit.command.time.set' he can do that

    ???

    Please help
     
  22. Offline

    dalphi

    Is there a way to enforce 'false' on ops? Theres some commands I'd prefer my ops not using, but setting the permissions node to false does nothing, the ops are still able to run the command. I've seen this behavior with both Essentials and Mob disguise, so now I'm assuming it's an issues with Permissions Bukkit.
     
  23. Offline

    Celtic Minstrel

    There is a way to do this, and it's nothing to do with PermissionsBukkit. To add or deny permissions for ops, you need to edit permissions.yml in the main server directory.

    Since you're using PermissionsBukkit, though, it would probably be better/easier to demote all your ops to a PermissionsBukkit group rather than altering the permissions ops get.
     
  24. Offline

    Rikaelus

    ^ What he said.
    My goal right now is to have my ops file completely empty, and have permissions explicitly laid out in PermissionsBukkit. This has the added benefit of not having to remember how different plugins handle Ops, since how they do it might not be how you want it done.

    It's more verbose, but gives more granular control and detail.
     
  25. Offline

    ItsHarry

    By default, most commands can't be used unless you're an OP.
     
  26. Offline

    Celtic Minstrel

    Well, you can control which permissions ops get, overriding a plugin's choices of what permissions to give to ops; this is one thing the permissions.yml file in the server folder can be used for. However, if you're using a permissions system anyway, you might as well just use it for everything, right?
     
  27. Offline

    desht

    @Dinnerbone and anyone else who's interested...

    Is there a well-defined policy for what should happen if one parent permission node defines a given low-level node as false, and then another parent node includes the first parent permission and overrides the low-level node to be true? E.g. a plugin.yml excerpt:

    Code:
    permissions:
      parent1:
        description: first parent node
        children:
          child1: false
          someothernode: true
      parent2:
        description: second parent node
        children:
           parent1: true
           child1: true
      child1:
        description: our low-level node
        default: true
    
    If I use a permissions plugin to grant "parent2" to a given player, what should player.hasPermission("child1") return?
     
  28. I think the result is "True", becuase parent1 is listed before child1, so parent1 is progressed before the progress of child1 at parent2
     
  29. correct me if i'm wrong, but
    player.hasPermission("my.plugins.permission").

    requires that the player be online, no?
    Is there a way to check their permission node if their NOT online (as a plugin dev)
     
  30. Offline

    gabriel11798

    can i do per-world permission nodes?
     
Thread Status:
Not open for further replies.

Share This Page