Inactive [ADMN/DEV] Permissions v2.7.4 (Phoenix) - DISCONTINUED! 3.0 has a new home!

Discussion in 'Inactive/Unsupported Plugins' started by TheYeti, Feb 25, 2011.

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

    TheYeti

    Permissions 2.7.4 (Phoenix) - Now with AntiBuild built in!
    Download:
    Latest Stable: Full Zip | Jar Only
    Latest Dev Build: Full Zip | Jar Only
    Previous Versions: 2.7.3 (JAR) | 2.7.2 (JAR) | 2.7.1 (JAR) | 2.7 (JAR) | 2.6 (JAR) | 2.5.5 (JAR) | 2.5.4 (JAR) | 2.5.3 (JAR) | 2.5.2 (JAR) | 2.5.1 (JAR) | 2.5 (JAR) | 2.4 (JAR) | 2.3 (JAR) | 2.2 (JAR)

    Plugin Authors: How to hook into Permissions

    Permissions 2.x is being discontinued! 3.0 can be found HERE!!!


    I am discontinuing Permissions 2.x and leaving the project. Permissions is not going away though! Since 2.6 I have been working closely with another developer and added them to the team. For the past several version they have not only been assisting with 2.x but also doing a lot of the development of much anticipated 3.x. rcjrrjcr will be taking over as lead developer of Permissions from 3.x forward. I have full faith in them and after working closely with them on the development on the last few version and the next major version I feel that I am leaving this project in more than capable hands. I put way to much work into this project to just leave it with anyone, and this is one of the few programs that I am incredibly proud of.

    Many people will probably wonder why I am leaving again after taking over the project just a few months ago. I could quote drama and headaches, of which there were quite a few with this project. Unfortunately real life happens. Many people already know that I have been having medical issues here lately. Unfortunately while they have gotten better, they have not gone away. This coupled with other real life commitments, going to school full time, and starting up my own company, I am currently in the process of being laid off from work. At this point I have so much stuff going on in my life and am being pulled in so many directions that I am not able to get any work done on anything. This has lead to me missing commitments and letting people down on multiple things.

    Permissions is also a very high maintenance plugin that requires a lot of attention and time. Right now I am not able to devote that time and do not feel it is fair for me to try to continue to be the lead developer on it. I had originally thought that adding other members to the team would be helpful, but unfortunately this just lead to frustration for them and myself as I just was not able to commit to the project enough. Hence, 3.0 has been rewritten almost exclusively by rcjrrjcr with minimal contributions by myself.

    At this point I will be stepping away from the project to focus more on real life and to try to free up some time for other projects and to work with more individual like the wonderful HeroCraft Coding team to fulfill some commitments that I made to them a long time ago and sadly did not come through on. I feel that this is the best for all involved, both myself and the other Permissions developers, as well as the community who deserve someone who can contribute more time and attention to them and supporting them. I do not want to see Permissions end up like many other plugins with an absentee programmer and just slowly wasting away from a great plugin with a lot of potential to a headache with no support.

    I will still be active in the community, just not as much as not in the same way. I'm sure my server will be more than happy to have their head admin back and active again as well.

    Thank you and happy gaming.




    Changelog
    • 2.7.4
      • Added overload of has() and permissions() for plugin devs
    • 2.7.3
      • Fixed negate node add/remove bug.
    • 2.7.2
      • Fix for small subtle bug introduced in last minor version.
    • 2.7.1
      • Commit by DThielke to fix several bugs with programmatic modifications of user permissions.
    • 2.7
      • Further commits by rcjrrjcr
        • Removed negatedNode checks
        • Temp fix for NULL issue
        • WorldConfigurationModification to save only modified configs
        • Fix for cache problems
    • 2.6
      • Pulled in commits by rcjrrjcr
      • Fixed versioning. Last version should have technically been 2.6
      • Fixed invalid config file being written
      • Fixed erroneous conversion message.
    • 2.5.5
      • Updated to be compliant with CB600+
      • Further Maven Integration and Autobuilding
      • Better handling of configuration file errors.
        • If you do not have a world config file for the default world at startup it will now look for config.yml
        • If it cannot find that it will look for world.yml instead in case you named it that when that is not what is in level-name:
        • It will rewrite the config file to be the proper name. At this time it does not delete the old one though.
      • Removed defunct public abstract calls. If your not using the right one by now you should be shot anyway.
    • 2.5.4
        • Added Command aliases for perms and pr
        • Changed the way directories are handled.
        • Stopped it from creating an empty <world>.yml file in base directory
        • Moved project to using Maven.
    • 2.5.3
      • Change from File.pathSeparator to File.separator to fix multiworld perms
    • 2.5.2
      • Added more instructions to the included config file within the plugin
      • Added a check that will use the default world permissions if a world specific config file cannot be found.
      • Added a function to get only the group that a player is assigned to without checking for group inheritance.
      • Added a change to colorize() to fix it hopefully not adding an extra unneeded ascii character and thus creating a linebreak/color switch issue
      • Removed permissions.info as it was not needed and was a artifact of testing I was doing.
    • 2.5.1
      • Fixed a bug that could cause a group to be returned as null for getGroups()
    • 2.5
      • Added in AntiBuild functionality to Permissions
      • Minor code tweaks
      • Added getGroups(world, player) to PermissionHandler so that plugins can call it to get all of a users groups
      • Fixed the inability to use the permissions -reload all command from within the console. I still need to do some more work on this as it doesn't seem to like to accept anything other than all from console.
    • 2.4
      • Refactored namespaces to keep in line with Java & Bukkit policy
        • This was cancelled as it ended up being not needed
      • Fixed setupPermissions()
    • 2.3
      • Undid removal of some code that I had overzealously purged during cleanup
      • Merged in last of Nijikokun's changes
      • Re-ordered the main class to attempt to fix the problems with Plugin API
    • 2.2
      • Developer change
      • Fixed reloading of configuration files
      • Moved commands to registering with plugin.yml
      • Commands now use onCommand instead of onPlayerCommand
      • Command is now /permissions instead of /pr
    [/SPOILER]
     
    mruczek, kahlilnc, Pii and 58 others like this.
  2. Offline

    Yolsh

    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'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'defaultcommands.spawn.set'
                - 'defaultcommands.teleportlist'
                - 'defaultcommands.online'
                - 'defaultcommands.time.get'
                - 'defaultcommands.kill.self'
                - 'defaultcommands.message.other'
                - 'defaultcommands.sethome.self'
                - 'defaultcommands.motd'
                - 'defaultcommands.top.self'
                - 'defaultcommands.kitlist'
                - 'ThunderJoin.join'
                - 'sortal.coords'
                - ''
                - ''
                - ''
                - ''
                - ''
                - ''
                - ''
                - ''
        Admins:
            default: false
            info:
                prefix: ''
                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:
        Dillon:
            group: Admins
            permissions:
        JeffTheBold:
            group: Admins
            permissions:
        Lizard:
            group: Moderator
            permissions:
                - ''
        Janica23:
            group: Default
            permissions:
                - ''
        chibimapleleaf:
            group: Moderator
            permissions:
                - ''
        Chad:
            group: Moderator
            permissions:
                - ''
    These are my permissions as asked.
     
  3. Offline

    Jeyge

    I'm guessing you aren't getting the same errors and perhaps no errors now but your file could do with some cleaning. You have some extra lines that could be removed but aren't causing any problems right now. If you are still seeing some errors, just reply to this message with the new server.log file.
    Your permissions are left justified but I'm guessing that is caused by posting them then adding the code tags. Is he running any sort of single player mods or texture packs? If he is, have him remove them.
     
  4. Offline

    alexms96

    I wont jump to conclusions but the problem is exactly the same as mine, try adding the permissions to each user, still wont work "right" but at least you'll have commands. No idea what the problem is though.

    Dude, you are a lifesaver, the JAR with the zip package must be 2.7.1 cause mine was the same, download 2.7.2, server says 2.7.1...anyway thanks, this as a real thorn out of my side.

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

    Dragonntiger

    Code:
    plugin:
    
    permissions:
    system: default
    copies: null
    groups:
     Guest:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance: null
    permissions:
    - essentials.spawn
    - essentials.help
    - mywarp.warp.*
    - essentials.rules
    - essentials.motd
    - essentials.afk
    - essentials.me
    - essentials.list
    VIP:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Guest
    permissions:
    - AutoRepair.access
    - AutoRepair.repair
    - essentials.home
    - essentials.sethome
    - essentials.compass
    - essentials.jump
    - essentials.back.*
    - essentials.msg
    - essentials.mail.*
    - craftbook.*
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - VIP
    permissions:
    - essentials.time
    - essentials.item
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - essentials.tp
    - essentials.tpahere
    - '*'
    Skrillex:
    default: false
    info:
    prefix: '&3'
    suffix: '&4'
    build: true
    inheritance: null
    permissions:
    - '*'
    Cpt:
    default: false
    info:
    prefix: '&8'
    suffix: '&9'
    build: true
    inheritance: null
    permissions:
    - '*'
    users:
    Mynameisskrillex:
    group: Skrillex
    permissions: null
    scpo:
    group: VIP
    permissions: null
    aguyyoudontkno:
    group: Admins
    permissions: null
    iamkewl69:
    group: Cpt
    permissions: null
    aw dude, cuhs my server we want people to have the same texture pack, i could ask them to remove it,.. but is there anyway to go around that area? another fix? :] orr.. maybe i could possibly put the texture pack inside the server inside, then i would need help on that so jus gonna wait for your response.. XD

    Edit: my friend says he doesnt have any singleplayer mods or texture packs on.., I also had no spaces in the config file, i just put spaces for you guys to see clearly but yeah i posted a more accurate file at the top.
     
  6. Offline

    Haekon

    I normally hate to do this, but could somebody help me bughunt this?
    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:
        Tourist:
            default: true
            info:
                prefix: '[TOURIST]'
                suffix: ''
                build: false
            inheritance:
            permissions:
        Builder:
            default: false
            info:
                prefix: '[BUILDER]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'commandbook.who'
                - 'commandbook.motd'
                - 'commandbook.rules'
                - 'commandbook.kits.kit.starter'
                - 'commandbook.spawn'
                - 'creaturebox.dropspawner'
                - 'creaturebox.placespawner'
                - 'itemdetector.create.block'
                - 'itemdetector.create.damage'
                - 'itemdetector.create.pit'
                - 'itemdetector.create.launch'
                - 'itemdetector.create.fire'
                - 'itemdetector.create.heal'
                - 'itemdetector.create.thunder'
        Moderator:
            default: false
            info:
                prefix: '[MODERATOR]'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'commandbook.teleport'
                - 'commandbook.teleport.other'
                - 'commandbook.return'
                - 'commandbook.kick'
                - 'commandbook.bans.ban'
                - 'commandbook.bans.unban'
                - 'commandbook.bans.isbanned'
                - 'multiverse.tp'
                - 'multiverse.world.spawn'
                - 'worldedit.brush.ex'
                - 'worldedit.navigation.descend'
                - 'worldedit.navigation.ascend'
                - 'worldedit.navigation.ceiling'
                - 'worldedit.navigation.thru'
                - 'worldedit.navigation.jumpto'
                - 'worldedit.navigation.up'
                - 'worldedit.superpickaxe'
                - 'worldedit.drain'
                - 'worldedit.fixlava'
                - 'worldedit.fixwater'
                - 'worldedit.snow'
                - 'worldedit.thaw'
                - 'worldedit.extinguish'
                - 'worldedit.butcher'
                - 'herochat.admin'
                - 'herochat.create'
        Admin:
            default: false
            info:
                prefix: '[ADMIN]'
                suffix: ''
                build: true
            inheritance:
                - Moderator
            permissions:
                - 'worldedit.brush.sphere'
                - 'worldedit.brush.cylinder'
                - 'worldedit.brush.clipboard'
                - 'worldedit.brush.smooth'
                - 'worldedit.chunkinfo'
                - 'worldedit.listchunks'
                - 'worldedit.delchunks'
                - 'worldedit.clipboard.copy'
                - 'worldedit.clipboard.cut'
                - 'worldedit.clipboard.paste'
                - 'worldedit.clipboard.rotate'
                - 'worldedit.clipboard.load'
                - 'worldedit.clipboard.save'
                - 'worldedit.clipboard.clear'
                - 'worldedit.limit'
                - 'worldedit.generation.cylinder'
                - 'worldedit.generation.sphere'
                - 'worldedit.generation.forest'
                - 'worldedit.generation.pumpkins'
                - 'worldedit.history.undo'
                - 'worldedit.history.redo'
                - 'worldedit.history.clear'
                - 'worldedit.region.set'
                - 'worldedit.region.replace'
                - 'worldedit.region.overlay'
                - 'worldedit.region.faces'
                - 'worldedit.region.smooth'
                - 'worldedit.region.move'
                - 'worldedit.region.stack'
                - 'worldedit.regen'
                - 'worldedit.scripting.execute'
                - 'worldedit.selection.pos'
                - 'worldedit.selection.hpos'
                - 'worldedit.selection.chunk'
                - 'worldedit.wand'
                - 'worldedit.wand.toggle'
                - 'worldedit.selection.expand'
                - 'worldedit.selection.contract'
                - 'worldedit.selection.shift'
                - 'worldedit.selection.outset'
                - 'worldedit.selection.inset'
                - 'worldedit.selection.size'
                - 'worldedit.analysis.count'
                - 'worldedit.analysis.distr'
                - 'worldedit.snapshots.list'
                - 'worldedit.snapshots.restore'
                - 'worldedit.tool.tree'
                - 'worldedit.tool.info'
                - 'worldedit.tool.replacer'
                - 'worldedit.tool.datacycler'
                - 'worldedit.brush.options.mask'
                - 'worldedit.brush.options.material'
                - 'worldedit.brush.options.size'
                - 'worldedit.fill'
                - 'worldedit.fill.recursive'
                - 'worldedit.removeabove'
                - 'worldedit.removebelow'
                - 'worldedit.replacenear'
                - 'worldedit.limit.unrestricted'
                - 'worldedit.anyblock'
                - 'worldedit.override.bedrock'
                - '-worldguard.god'
                - '-worldguard.god.other'
                - 'worldguard.heal'
                - 'worldguard.slay'
                - 'worldguard.heal.other'
                - 'worldguard.slay.other'
                - 'worldguard.locate'
                - 'worldguard.stack'
                - 'worldguard.region.define'
                - 'worldguard.region.redefine'
                - 'worldguard.region.claim'
                - 'worldguard.region.select'
                - 'worldguard.region.info'
                - 'worldguard.region.flag'
                - 'worldguard.region.setpriority'
                - 'worldguard.region.setparent'
                - 'worldguard.region.remove'
                - 'worldguard.region.addmember'
                - 'worldguard.region.addowner'
                - 'worldguard.region.removemember'
                - 'worldguard.fire-toggle.stop'
                - 'worldguard.reload'
                - '-worldguard.report'
                - 'worldguard.region.bypass.*'
                - 'commandbook.give.*
                - 'commandbook.kits.list'
                - 'commandbook.kits.kit.*'
                - 'commandbook.spawnmob'
                - 'commandbook.spawnmob.many'
                - 'commandbook.weather'
                - 'commandbook.weather.thunder'
                - 'commandbook.thor'
                - 'commandbook.whois'
                - 'commandbook.bans.load'
                - 'commandbook.bans.save'
                - 'creaturebox.set'
                - 'creaturebox.give'
                - 'creaturebox.creature.*'
                - 'creaturebox.period'
                - 'creaturebox.count'
                - 'creaturebox.limit'
                - 'creaturebox.requires'
                - 'itemdetector.create.remove'
                - 'itemdetector.kill'
                - 'itemdetector.repair'
                - 'multiverse.world.create'
                - 'multiverse.world.import'
                - 'multiverse.world.remove'
                - 'multiverse.world.list'
                - 'multiverse.setspawn'
                - 'multiverse.portal.select'
                - 'multiverse.portal.destination'
                - 'multiverse.portal.rename'
                - 'multiverse.portal.list'
                - 'weather.get'
                - 'weather.set.normal'
                - 'weather.strike.player'
                - 'weather.strike.item'
                - 'weather.invulnerable'
    ##
    # 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:
        Haekon:
            group: Admin
            permissions:
    #    012948759384759:
    #        group: Default
    #        info:
    #            prefix: 'Moo'
    #            suffix: 'Cow'
    #        permissions:
    #            - 'herp.derp'
    #    09849850945345:
    #        group: Default
    #        permissions:
    #            - '-derp.derp'
    Server's log says it pukes around here:

    Code:
    Caused by: while parsing a block collection
     in "<reader>", line 135, column 13:
                    - 'worldedit.brush.sphere'
                    ^
    expected <block end>, but found Scalar
     in "<reader>", line 221, column 16:
                    - 'commandbook.kits.list'
                       ^
    
    Lines in question are at the top and in the middle of the Admins permissions, to save you some time. I tried running it through the Online YAML parser, and it just spat me the same garbage. Also tried to delete the lines in question, and it just freaked out over the next line in the list.

    I double checked to make sure it wasn't a TAB instead of a SPACE. Other than that, I'm at a loss. Any help is appreciated.
     
  7. Offline

    Jeyge

    You have a missing ' a the end of the - 'commandbook.give.* line.
     
  8. Offline

    AmounRah

    Hey guys :)
    I am kinda new to Bukkit and Permissions.
    As this is my first post here...I hate for it to be a "help me fix this" post but I am at a loss....

    It seems like I followed tutorials and everything (seems) to be proper....BUT it seems that anyone who joins, is automatically made an admin.
    At first I thought it was a conflict between McMyAdmin groups and Permissions, so I got rid of all the groups in McMyAdmin but that did not solve the issue. Also it tells me that I do not have permission to use "firecontrol.check" for some reason....
    Everything is fine in YAML checker....I went over it a few times, but I am clearly missing something. If anyone could help out, that would be amazing.

    EDIT: I also noticed that player specific prefix does not want to work for me...

    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: '&f'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Builder:
            default: false
            info:
                prefix: '&a'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
                - 'essentials.top'
                - 'essentials.back'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.me'
                - 'essentials.clearinventory'
                - 'essentials.ext'
                - 'essentials.kill'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.kit'
                - 'essentials.kit.*'
                - 'essentials.suicide'
                - 'essentials.unlimited'
        Moderator:
            default: false
            info:
                prefix: '&e'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'bar.foo'
                - 'essentials.tptoggle'
                - 'essentials.tphere'
                - 'essentials.tp'
                - 'essentials.kick'
                - 'essentials.kickall'
                - 'essentials.ban'
                - 'essentials.unban'
                - 'essentials.togglejail'
                - 'essentials.time'
                - 'essentials.tree'
                - 'essentials.bigtree'
        Admins:
            default: false
            info:
                prefix: '&4'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'essentials.tpo'
                - 'essentials.burn'
                - 'essentials.setjail'
                - 'essentials.jail.exempt'
                - 'essentials.god'
                - 'firecontrol.check'
                - 'firecontrol.command'
    ##
    # 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:
        PERZN:
            group: Moderator
            info:
                prefix: 'For Sparta'
                suffix: ''
            permissions:
                - 'herp.derp'
        BlowjobBrian:
            group: Moderator
            permissions:
                - '-derp.derp'
        AmounRah:
            group: Admins
            permissions:
                - '-derp.derp'
     
  9. Offline

    Haekon

    DOH!

    Thanks, Jeyge
     
  10. Offline

    Syrena

    does it support sql?
     
  11. Offline

    NeonJ

    Hey, how do I make it so someone LOSES a permission? For example, if they inherited a permission from a previous group, how can I take that permission away?
     
  12. Offline

    Maxis010

    Specific each permission you want them to lose like this - -permission.node
    NEVER use - -permission.* as this will NOT work until permissions v3.#
     
  13. Offline

    NeonJ

    Well, this isn't working then. :S
    Code:
        Admin:
            default: false
            info:
                prefix: '&c'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - -mcmmo.item.chimaerawing
                - -mcmmo.regeneration
                - -mcmmo.skills.unarmed
     
  14. Offline

    jumika

    I still having problems with taking away permissions from groups, and users.
    Just to make it clear, if i give '*' to a group, can i take away from it with '-'?
    Like:
    Code:
    groups:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - '-general.time'
    Is this supposed to work? Because for me it's not.
    It also doesn't work if i put it to the player's permissions
    Any advices?
     
  15. Offline

    Jeyge

    @NeonJ & @jumika
    You can't remove permissions from a group if you first grant them '*'.
    Not yet but perhaps at some point.
     
  16. Offline

    Maxis010

    I have given myself '*' across multiple worlds and in each case if I remove individual permissions it works fine
    So you CAN remove permissions even when granted with '*'
     
  17. Offline

    NeonJ

    How?
     
  18. Offline

    Maxis010

    Code:
                - '*'
                - -multihome.sethome
                - -multihome.setnamedhome
                - -multihome.setothershome
                - -tombstone.use
    This is a sample of one of my world.yml file
    I can not use any instance of the /sethome command from MultiHome nor do tombstones drop in that world while the world with only - '*' I have all permissions with MultiHome and Tombstones drop as normal

    Another instance is when I first found out that the * wildcard doesn't work with removals
    I use the plugin ItemDetector
    In version 0.91 is had a load of ignore nodes, when using the wildcard these wouldn't work but when set 1 by 1 I was affected by the various ignorable options
     
  19. Offline

    Jeyge

    Damn, and here I keep telling people that they can't do this but I just crawled thru the code and it was my misunderstanding of how it actually works. You really have to be specific if you are removing something. An example would be WorldGuards redefine. When it checks for permissions, it first looks for worldguard.region.redefine.own then on to .member. If you are the owner or a member and have only removed permissions thru - '-worldguard.region.redefine', you won't be refused.

    Thanks for pointing this out. It will really help in the future.
     
  20. Offline

    NeonJ

    Oh, this whole time I just found out what I've been doing wrong.
    I TOOK AWAY THE WRONG PERMISSION. >_<
    I was supposed to take away mcmmo.ability.unarmed, not mcmmo.skills.unarmed. No wonder why my tests all failed.
    They're easy to mess up though, right?
     
  21. Offline

    noob4action

    is it possible to add two groups for a user?
     
  22. Offline

    Adam_TGOD

    Ok so i put my name in but all my commands are still being denied. Help?
     
  23. Offline

    Dragonntiger

    can someone help me with my problem? ;D
     
  24. Offline

    Jeyge

    I'm actually surprised that file would work at all. I can't get either of the yaml parsers to accept it left justified as it is but you say that he is the only one it doesn't work for so I'll have to assume it is somehow working for you. Unfortunately, not being able to run it thru a parser, I can't check for any errors and you haven't posted a log so hopefully, it isn't throwing any errors. Without any more information, I would have to say it is with his install. Perhaps having him reinstall Minecraft would fix things.

    Edit - I just copied your file over to my server and as I expected, it just doesn't work. Are you sure you aren't running something other than Permissions or perhaps what you are seeing is your OPs having some permissions and that file really doesn't work?
     
  25. Offline

    Dragonntiger

    you gotta have the same commands plugins as i do, and yeah he told me he didnt have any mods/texture packs on, uhh, it works for the "admins" higher ranks, the left justified text is just the code thing iono why it does it but it happens to me, soo anyways basically my friend, vip guy, his commands do not work even though he inherits the other commands... i believe it has somthing to do with the users part, am i suppose to leave it blank or something?
     
  26. Offline

    Jeyge

    You will need to work with me here. I originally assumed you had spaces in your file but then you told me you didn't. Now you are saying they are there but the "code" tags remove them? The "code" tags are actually there to preserve spaces so I'm not sure how that could happen. And you are right that I would need the same plugins for that file to work but that plugin wouldn't be Permissions.

    As for users in the users part. Yes, that is where you would put the users.
     
  27. Offline

    klutch2013

    how do i make it so all people including admins that have the " - '*' " command in the main world, have no commands accept for the multi-verse commands in my survival world?
     
  28. Offline

    Jeyge

    Your mainworld.yml would look like:
    Code:
    plugin:
        permissions:
            system: default
            copies: 
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
    
    and your survivalworld.yml would be:
    Code:
    plugin:
        permissions:
            system: default
            copies: 
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'multiverse.*'
    users:
    
     
  29. Offline

    klutch2013

    EDIT: moved my post to help section
     
  30. Offline

    Comfybackpack

    i have a problem. all of the permissions work except for the colors and prefix and suffix. can someone please help me with my problem?
     
  31. Offline

    Dragonntiger


    lol i believe we both have a huge misunderstanding so for clarity again..
    here's another accurate setup of my permissions :]
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance: null
            permissions:
            - essentials.spawn
            - essentials.help
            - mywarp.warp.*
            - essentials.rules
            - essentials.motd
            - essentials.afk
            - essentials.me
            - essentials.list
        VIP:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Guest
            permissions:
            - AutoRepair.access
            - AutoRepair.repair
            - essentials.home
            - essentials.sethome
            - essentials.compass
            - essentials.jump
            - essentials.back.*
            - essentials.msg
            - essentials.mail.*
            - craftbook.*
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - VIP
            permissions:
            - essentials.time
            - essentials.item
            - essentials.tp
            - essentials.tpahere
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
        Skrillex:
            default: false
            info:
                prefix: '&3'
                suffix: '&4'
                build: true
            inheritance: null
            permissions:
            - '*'
        Cpt:
            default: false
            info:
                prefix: '&8'
                suffix: '&9'
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        Mynameisskrillex:
            group: Skrillex
            permissions: null
        scpo:
            group: VIP
            permissions: null
        aguyyoudontkno:
            group: Admins
        iamkewl69:
            group: Cpt
    
    if these are not "alligned" like i was trying to say earlier, its with the code thing.. so in game, my friend scpo is not able to type in /list, and i need to fix that, as you can see hes inheriting from guest o-o
     
Thread Status:
Not open for further replies.

Share This Page