Permissions help required.

Discussion in 'Bukkit Help' started by Long, Mar 23, 2011.

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

    Long

    Alright... I have been spending about an hour on how to figure out Permissions; slowly but surely, I am fixing problems, but I can't figure this one out on my own.
    Originally, I attempted to use Permissions, but it didn't load all the permissions, so I switched to GroupManager. It says to loads them, but when I attempted to use /mcgod from mcMMO, it said insufficient permissions, but I have everything set up correctly, I think. I have the map name and permission name matching, I made sure everything was lined up, I didn't use tabs, I used single quotes('), I used dashes, I did everything my knowledge(very little) of permissions could do. So.... Please help?
    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.skills.mining'
                - 'mcmmo.skills.woodcutting'
                - 'mcmmo.skills.repair'
                - 'mcmmo.skills.unarmed'
                - 'mcmmo.skills.archery'
                - 'mcmmo.skills.herbalism'
                - 'mcmmo.skills.excavation'
                - 'mcmmo.skills.swords'
                - 'mcmmo.skills.acrobatics'
                - 'mcmmo.skills.axes'
                - 'monstertamer.player.befriend'
                - 'monstertamer.player.check'
                - 'monstertamer.player.catch'
                - 'monstertamer.player.release'
                - 'monstertamer.player.whistle'
                - 'monstertamer.player.follow'
                - 'monstertamer.player.wait'
                - 'monstertamer.player.target'
                - 'gastronomic.player.checkhunger'
                - 'gastronomic.player.checkfood'
                - 'gastronomic.player.huner'
     
        Moderator:
            default: false
            info:
                prefix: '[Mod]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
     
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Moderator
            permissions:
                - '*'
                - 'mcmmo.chat.adminchat'
                - 'mcmmo.tools.mcgod'
                - 'mcmmo.tools.mmoedit'
                - 'mcmmo.item.chimaerawing'
                - 'mcmmo.tools.mcrefresh
                - 'gastronomic.admin.enable'
                - 'gastronomic.admin.reload'
                - 'gastronomic.admin.sethunger'
     
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        Ju34u:
            group: Admins
            permissions:
        Magiro:
            group: Moderator
            info:
                prefix:
                suffix:
            permissions:
    
        Derpina:
            group: Admins
            permissions:
                - '-derp.derp'
     
  2. Offline

    Direct1221

    remove the space after Magiro (Under users: )

    Also, another big leading cause of errors, Admins dont need all the other commands when they have access to - '*' so remove the rest. Also remove - Moderator from inheritance. as it does not need to inherit anything.

    also, remove the info: area from Magiro as if it's not being used, will just cause errors since you dont have '' there to open and close the YAML coding meant to be there.
     
  3. Offline

    Long

    Nothing changed. In the CMD.Exe it says the permissions load, but I'm not being allowed permissions. Here's the code:
    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
        Default:
            default: true
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.skills.mining'
                - 'mcmmo.skills.woodcutting'
                - 'mcmmo.skills.repair'
                - 'mcmmo.skills.unarmed'
                - 'mcmmo.skills.archery'
                - 'mcmmo.skills.herbalism'
                - 'mcmmo.skills.excavation'
                - 'mcmmo.skills.swords'
                - 'mcmmo.skills.acrobatics'
                - 'mcmmo.skills.axes'
                - 'monstertamer.player.befriend'
                - 'monstertamer.player.check'
                - 'monstertamer.player.catch'
                - 'monstertamer.player.release'
                - 'monstertamer.player.whistle'
                - 'monstertamer.player.follow'
                - 'monstertamer.player.wait'
                - 'monstertamer.player.target'
                - 'gastronomic.player.checkhunger'
                - 'gastronomic.player.checkfood'
                - 'gastronomic.player.hunger'
     
        Moderator:
            default: false
                prefix: '[Mod]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
     
        Admins:
            default: false
                prefix: '[God]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'mcmmo.tools.mmoedit'
     
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        ju34u:
            group: Admins
            permissions:
        Magiro:
            group: Moderator
            permissions:
    
    I don't see a space after Magiro. It's just Magiro:
     
  4. Offline

    andrewkm

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
        Guest:
            default: true
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.skills.mining'
                - 'mcmmo.skills.woodcutting'
                - 'mcmmo.skills.repair'
                - 'mcmmo.skills.unarmed'
                - 'mcmmo.skills.archery'
                - 'mcmmo.skills.herbalism'
                - 'mcmmo.skills.excavation'
                - 'mcmmo.skills.swords'
                - 'mcmmo.skills.acrobatics'
                - 'mcmmo.skills.axes'
                - 'monstertamer.player.befriend'
                - 'monstertamer.player.check'
                - 'monstertamer.player.catch'
                - 'monstertamer.player.release'
                - 'monstertamer.player.whistle'
                - 'monstertamer.player.follow'
                - 'monstertamer.player.wait'
                - 'monstertamer.player.target'
                - 'gastronomic.player.checkhunger'
                - 'gastronomic.player.checkfood'
                - 'gastronomic.player.hunger'
        Moderator:
            default: false
                prefix: '[Mod]'
                suffix: ''
                build: true
            inheritance:
                - Guest
            permissions:
        Admins:
            default: false
                prefix: '[God]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        ju34u:
            group: Admins
            permission:
        Magiro:
            group: Moderator
            permissions:
    
    try this.
     
  5. Offline

    Long

    Thanks, but, still nothing.
     
  6. Offline

    solentice

    If your are using GroupManager v1.0, then why not just start fresh using the two default files it creates, groups.yml and users.yml(they are seperate). I know it says you can use the Permissions file, but it's usually best to stick with the default setup of the plugin. You can even copy and paste code from the Permissions file to the group and user .yml files if you need to. You should also move the Permissions.jar file and the Permissions .yml file(once you copied the code) from your plugins folder so they don't conflict with GroupManager. See if that helps...
     
Thread Status:
Not open for further replies.

Share This Page