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

    Jeyge

    Ah, there we go. That is something we can actually work with. I've fixed it up a bit so give this one a try.
    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
    
    Is that a problem, a statement or a question?

    While you enter the things like the prefix and suffix in Permissions, it doesn't do anything with them. You will need a chat plugin to show them.

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

    klutch2013

  4. Offline

    Dragonntiger

    hey jeyge, my friend tested it wen i added more spaces in permissions into the setup, he still gets denied access

    Edit: I believe it has something to do with the users part, like im suppose to put
    permissions:
    - '(something) '
     
  5. Offline

    Yolsh

    Yea. Just a heads up, but it randomly stopped shitting errors on my server. I'm stoked.
     
  6. Offline

    bram2005

    How can i make thats the player who join always in the group default is
     
  7. Offline

    Jeyge

    Perhaps just another misunderstanding but did you use the version of the file that I fixed or just randomly add some spaces to the file?

    As for adding something to the permissions in the users section, you would only do that if you wanted a user to have some special permissions that the group wouldn't normally have. Really no need to do that here though.

    Just set default to true on one of the groups and everyone who joins and isn't already in the users section will be in that group.

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

    bram2005

    my default group can building and i have build false by thats group how can that
     
  9. Offline

    Dragonntiger

    oh,.. and i added spaces to the file following your example, like have the dash under the certain letter
     
  10. Offline

    Jeyge

    Well, we aren't getting anywhere this way so have you tried making him an admin? Perhaps putting him in the ops.txt file just as a test to see if it really is his install?

    Are you perhaps running another permissions plugin like GroupManager? If not, could you post your permissions.yml file?

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

    bram2005

    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'
    
        Builder:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'bar.foo'
        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:
    Thats my permission.yml
     
  12. Offline

    Jeyge

    The good news is that there isn't anything really wrong there. The bad news is there isn't anything there. Are you planning on filling in the rest at some later time?

    I'm guessing the problem you are trying to fix is that people can build even when in the default group. If this isn't correct, please let me know what it is. If it is, then I'll probably need your server.log to see what plugins you are running.
     
  13. Offline

    bram2005

    [​IMG]
    Thats my plugins. the build on true work not
     
  14. Offline

    dustin2829

    Hello Im haveing a problem were players can build and destroy blocks but they get this message saying you dont have permission to do that basicly here is my list of addons and what my permissions.yml says

    CommandBook
    CraftBookCircuits
    CraftBook
    CraftBookMechanisms
    CraftBookVehicles
    HeroChat
    MagicCarpet
    Permissions
    Trampolin.0.5c
    TreeAssist
    Webz
    WhoAreYou
    WorldEdit
    WorldGuard


    and the yml


    # 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:
    Builder:
    default: true
    info:
    prefix: '&f[Builder]'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'commandbook.who'
    - 'commandbook.motd'
    - 'commandbook.rules'
    - 'ommandbook.kit.list'
    - 'commandbook.kit.kits'
    - 'commandbook.msg'
    - 'commandbook.whereami'
    - 'commandbook.whereami.compass'
    - 'craftbook.mech.ammeter.use'
    - 'craftbook.mech.ammeter.bridge'
    - 'craftbook.mech.ammeter.bookshelf.use'
    - 'craftbook.mech.ammeter.cauldron'
    - 'craftbook.mech.ammeter.elevator'
    - 'craftbook.mech.ammeter.elevator.use'
    - 'craftbook.mech.ammeter.gate'
    - 'craftbook.mech.ammeter.light-switch'
    - 'craftbook.ic.safe'
    - 'craftbook.ic.restricted'
    - 'craftbook.ic.safe.mcxxxx'
    - 'craftbook.ic.restricted.mcxxxx'
    - 'commandbook.spawn'
    - 'commandbook.say.me'
    Moderator:
    default: false
    info:
    prefix: '&9[Moderator]'
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - '*'
    - 'worldguard.god'
    - 'worldguard.god.other'
    - 'worldguard.heal'
    - 'worldguard.heal.other'
    - 'worldguard.slay'
    - 'worldguard.slay.other'
    - 'magiccarpet.mc'
    - 'magiccarpet.ml'
    - 'commandbook.teleport'
    - 'commandbook.teleport.other'
    - 'commandbook.clear'
    - 'commandbook.clear.other'
    - 'commandbook.whois'
    - 'commandbook.whois.other'
    - 'commandbook.kick'
    - 'commandbook.bans.ban'
    - 'commandbook.give'
    - 'commandbook.give.other'
    - 'commandbook.give.infinite'
    - 'commandbook.give.stacks'
    - 'commandbook.give.stacks.unlimited'
    - 'commandbook.spawn'


    Admins:
    default: false
    info:
    prefix: '&4[Owner]'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    - 'worldedit.chunkinfo'
    - 'worldedit.listchunks'
    - 'worldedit.delchunks'
    - 'worldedit.clipboard.clear'
    - 'worldedit.clipboard.load'
    - 'worldedit.clipboard.save'
    - 'worldedit.clipboard.copy'
    - 'worldedit.clipboard.flip'
    - 'worldedit.clipboard.rotate'
    - 'worldedit.clipboard.cut'
    - 'worldedit.clipboard.paste'
    - 'worldedit.reload'
    - 'worldedit.generation.cylinder'
    - 'worldedit.generation.cylinder'
    - 'worldedit.generation.sphere'
    - 'worldedit.generation.sphere'
    - 'worldedit.generation.forest'
    - 'worldedit.generation.pumpkins'
    - 'worldedit.history.clear'
    - 'worldedit.history.redo'
    - 'worldedit.history.undo'
    - 'worldedit.navigation.unstuck'
    - 'worldedit.navigation.ascend'
    - 'worldedit.navigation.descend'
    - 'worldedit.navigation.thru'
    - 'worldedit.navigation.jumpto'
    - 'worldedit.navigation.ceiling'
    - 'worldedit.navigation.up'
    - 'worldedit.region.overlay'
    - 'worldedit.region.walls'
    - 'worldedit.region.faces'
    - 'worldedit.region.smooth'
    - 'worldedit.region.replace'
    - 'worldedit.region.stack'
    - 'worldedit.region.set'
    - 'worldedit.region.move'
    - 'worldedit.scripting.execute'
    - 'worldedit.scripting.execute'
    - 'worldedit.selection.chunk'
    - 'worldedit.selection.pos'
    - 'worldedit.selection.pos'
    - 'worldedit.selection.hpos'
    - 'worldedit.selection.hpos'
    - 'worldedit.wand'
    - 'worldedit.wand.toggle'
    - 'worldedit.selection.contract'
    - 'worldedit.selection.outset'
    - 'worldedit.analysis.distr'
    - 'worldedit.analysis.count'
    - 'worldedit.selection.size'
    - 'worldedit.selection.shift'
    - 'worldedit.selection.expand'
    - 'worldedit.selection.inset'
    - 'worldedit.snapshots.restore'
    - 'worldedit.snapshots.list'
    - 'worldedit.snapshots.restore'
    - 'worldedit.superpickaxe'
    - 'worldedit.superpickaxe.area'
    - 'worldedit.superpickaxe.recursive'
    - 'worldedit.superpickaxe'
    - 'worldedit.tool.replacer'
    - 'worldedit.tool.data-cycler'
    - 'worldedit.brush.sphere'
    - 'worldedit.brush.cylinder'
    - 'worldedit.brush.clipboard'
    - 'worldedit.brush.smooth'
    - 'worldedit.tool.info'
    - 'worldedit.tool.tree'
    - 'worldedit.brush.options.mask'
    - 'worldedit.tool.replacer'
    - 'worldedit.tool.data-cycler'
    - 'worldedit.brush.sphere'
    - 'worldedit.brush.cylinder'
    - 'worldedit.brush.clipboard'
    - 'worldedit.brush.smooth'
    - 'worldedit.tool.info'
    - 'worldedit.tool.tree'
    - 'worldedit.fill.recursive'
    - 'worldedit.fixlava'
    - 'worldedit.fixwater'
    - 'worldedit.removeabove'
    - 'worldedit.removebelow'
    - 'worldedit.removenear'
    - 'worldedit.replacenear'
    - 'worldedit.snow'
    - 'worldedit.thaw'
    - 'worldedit.extinguish'
    - 'worldedit.butcher'
    - 'worldedit.remove'
    - 'worldedit.fill'
    - 'worldedit.drain'
    - 'commandbook.teleport'
    - 'commandbook.teleport.other'
    - 'commandbook.clear'
    - 'commandbook.clear.other'
    - 'commandbook.whois'
    - 'commandbook.whois.other'
    - 'commandbook.kick'
    - 'commandbook.bans.ban'
    - 'commandbook.give'
    - 'commandbook.give.other'
    - 'commandbook.give.infinite'
    - 'commandbook.give.stacks'
    - 'commandbook.give.stacks.unlimited'
    - 'worldguard.region.removeowner.own.*'
    - 'worldguard.region.removeowner.member.*'
    - 'worldguard.region.removeowner.*'
    - 'worldguard.region.removemember.own.*'
    - 'worldguard.region.removemember.member.*'
    - 'worldguard.region.removemember.*'
    - 'worldguard.region.addowner.own.*'
    - 'worldguard.region.addowner.member.*'
    - 'worldguard.region.addowner.*'
    - 'worldguard.region.addmember.own.*'
    - 'worldguard.region.addmember.member.*'
    - 'worldguard.region.addmember.*'
    - 'worldguard.region.remove.own.*'
    - 'worldguard.region.remove.member.*'
    - 'worldguard.region.remove.*'
    - 'worldguard.region.setparent.own.*'
    - 'worldguard.region.setparent.member.*'
    - 'worldguard.region.setparent.*'
    - 'worldguard.region.setpriority.own.*'
    - 'worldguard.region.setpriority.member*'
    - 'worldguard.region.setpriority.*'
    - 'worldguard.region.flag.flags.*'
    - 'worldguard.region.flag.flags.FLAG_NAME'
    - 'worldguard.region.flag.own.*'
    - 'worldguard.region.flag.member.*'
    - 'worldguard.region.flag.*'
    - 'worldguard.region.info.own'
    - 'worldguard.region.info.member'
    - 'worldguard.region.info'
    - 'worldguard.region.select.own.*'
    - 'worldguard.region.select.member.*'
    - 'worldguard.region.select.*'
    - 'worldguard.region.redefine.own'
    - 'worldguard.region.redefine.member'
    - 'worldguard.region.redefine'
    - 'worldguard.region.define'
    - 'worldguard.region.claim'
    - 'worldguard.region.list'
    - 'worldguard.reload'
    - 'worldguard.fire-toggle.stop'
    - 'worldguard.locate'
    - 'worldguard.stack'
    - 'worldguard.god'
    - 'worldguard.god.other'
    - 'worldguard.heal'
    - 'worldguard.heal.other'
    - 'worldguard.slay'
    - 'worldguard.slay.other'
    ##
    # 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:
    dustin2829:
    group: Admins
    permissions:


    ibloomflowers:
    group: Admins
    permissions:


    thebobski:
    group: Admins
    permissions:


    sprayfumes:
    group: Moderator
    permissions:


    kaelea:
    group: Moderator
    permissions:
     
  15. Offline

    Yolsh

    For one, put the things in a code thingy, and secondly, I have no real knowlage on how to fix this, but I found that when people on my server had difficulties building and placing, OP'ing them usally fixed that.

    Oh, and you don't need all those permissions under the Admins group, the " -'*'" denotes every possible permission.
     
  16. Offline

    noob4action

    ?
     
  17. I'm just giving a casual warning again that the default config file may still be cause of many problems people have about not being able to build on their servers. Not everyone are IT experts. Just read bukkit help forums every once in a while to see how many has this issue...

    The default config file starts with:
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
    ...
    So as you see, out of the box, permissions plugin only lets moderators and admins build anything. All i'm asking is to set "build: true" in the zip file in first post. It won't help people that already have this issue but will reduce tens/hundreds more to come.
     
  18. Offline

    blackhole883

    ok i have tried for most of a week to get this to work i have done it in every way that i have been told and STILL will not work even running BY ITSELF with no other plugins it produces the could not pass event BLOCK_BREAK to Permissions the config file is in the plugins/permissions folder i it is called BAWorld.yml.YML (which from all these "tutorials" is correct(even tried it as BAWorld.YML)) here is the config file
    Code:
    ---
    plugin:
      permissions:
        system: 'default'
        copies: ''
    groups:
      Admins:
        default: false
        info:
          prefix: '&normal'
          suffix: '§multiplay'
          build: true
        inheritance:
          - 'Moderator'
        permissions:
          - 'essentials.*'
      Guest:
        default: ''
        info:
          prefix: ''
          suffix: ''
          build: false
        inheritance: ''
        permissions:
          - 'essentials.help'
          - 'essentials.motd'
          - 'essentials.rules'
      Moderator:
        default: false
        info:
          prefix: ''
          suffix: ''
          build: true
        inheritance:
          - 'User'
        permissions:
          - 'essentials.tp'
          - 'essentials.tphere'
          - 'essentials.kick'
          - 'essentials.ban'
          - 'essentials.banip'
      Owner:
        default: ''
        info:
          prefix: ''
          suffix: ''
          build: true
        inheritance: ''
        permissions:
          - '*'
      User:
        default: ''
        info:
          prefix: ''
          suffix: ''
          build: true
        inheritance:
          - 'Guest'
        permissions: ''
    users:
      13kpercy:
        group: 'Moderator'
        permissions: ''
      Blackhole883:
        group: 'Owner'
        permissions: ''
      Stephen5206:
        group: 'Owner'
        permissions: ''
      hothead42:
        group: 'User'
        permissions: ''
    
    i am beggining to think that this is some sort of massive joke because nothing i do seems to work if you can help me please tell me what i have done wrong i am about ready to just give up
     
  19. Offline

    imaxorz

    I have a questions regarding multi-world support.

    Is it possible for the permissions file to only copy the player list from a world, but have totally different permissions?
     
  20. Offline

    rockiesfan1234

    When anybody but an admin or a moderator places a block it says "you dont have permssion to use this"
    How can i fix this? because people complain to me all the time.
     
  21. Offline

    SamSamurai

    why wont my permissions config or the name of the world file in my permissions folder wont save?
     
  22. Offline

    Dragonntiger

    i am testing the groups part so i cant help you there, for the users though...
    i believe you do not need quotes around the group name and permissions you could put null
     
  23. Offline

    halvors

    I get this error when use almost all of my plugins on my server:

    Code:
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.halvors.WeatherControl.WeatherControl.hasPermissions(WeatherControl.java:129)
        at com.halvors.WeatherControl.WeatherControlPlayerListener.onPlayerInteract(WeatherControlPlayerListener.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:491)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  24. Offline

    Dragonntiger

    you should use iChat, or HeroChat and weathercontrol.. i believe essentials has it inside already to change the weather. dunno about iconomydeath. :p

    is there more to your error?? or is that it
     
  25. Offline

    halvors

    No this is for one of my plugins, i get one of these error messages for each plugin.
     
  26. Offline

    Αρρεν

    2TheYeti

    1. How should I configure .pom for compiling project using Maven2?

    2. What do you think about to use MySQL/SQLite database for storing permission configuration?
     
  27. Do I have to place each person into the default group or does it automatically put them there unless I put them into a different group? Here is my permissions config:

    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'lottery.buy'
    - 'lwc.protect'
    - 'localshops.buysell'
    - 'localshops.create'
    - 'localshops.move'
    - 'essentials.help'
    - 'mcdocs./rules'
    - 'mcdocs./motd'
    - 'mcdocs./news'
    - 'mcdocs./plugins'

    I had a player who joined and said he couldn't move his inventory or destroy blocks. What am I doing wrong?
     
  28. Offline

    Jeyge

    The file name should be <worldname>.yml so if your world is BAWorld (casing is important here too I believe), your file should be named BAWorld.yml.

    I'll bet even fixing that though you probably have been receiving an error in your server.log file. Something along the lines of:
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 155
    Unless you really are using Multiplay or another one of those wrappers, you won't be able to include a '§' in your file. It is a character that the default Permissions plugin won't understand.

    I don't believe you can. I tried to put a ',' between them, put them on multiple lines with a '-' and even tried to create 2 user lines and nothing worked. Your best bet would be to create different groups that inherit from the ones you want a user to have.
    If you mean using the copies line, then no. But you can always manually copy the default worlds yml file and add whatever you want to it.
    Isn't that the error that you get if you have a plugin that requires permissions but you aren't running permissions?

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

    Wishbone

    I need help with my permissions. I added myself to Admins but I when I try to use a command it says: Permission Denied. Also on the default group I set build: false, but they the users can still build. In the console it says: Could not pass event BLOCK_PLACE to Permissions. Here is my permission config:
    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'
        Builder:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'foo.bar'
                - 'warpz0r.list'
                - 'warpz0r.sethome'
                - 'warpz0r.home'
                - 'warpz0r.compasshome'
                - 'warpz0r.compassreset'
                - 'BOSEconomy.common'
                - 'lockette.user.create'
                - 'prefixer.list'
        Hero:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Builder
            permissions:
                - 'foo.bar'
                - 'warpz0r.warp'
                - 'warpz0r.set'
                - 'warpz0r.worldwarp'
                - 'warpz0r.worldhome'
                - 'prefixer.self'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Hero
            permissions:
                - 'bar.foo'
                - 'warpz0r.remove'
                - 'warpz0r.compasswarp'
                - 'warpz0r.admin.clearhome'
                - 'BOSEconomy.admin.money'
                - 'BOSEconomy.admin.bracket'
                - 'BOSEconomy.admin.bank'
                - 'BOSEconomy.admin.reload'
                - 'lockette.admin.create'
                - 'lockette.admin.reload'
                - 'prefixer.other'
                - 'prefixer.remove'
        Operator:
            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:
        wishbone_gfn:
            group: Operator
            permissions:
        lilpanda101:
            group: Operator
            permissions:
        NuclearKamikaze:
            group: Hero
            permissions:
    Hope someone can help.
    Thanks!
     
  30. Offline

    Drat333

    Hi, I'm getting this error:

    Code:
    2011-05-07 15:03:50 [INFO] Preparing start region
    2011-05-07 15:03:51 [SEVERE] ebean.properties not found
    2011-05-07 15:03:51 [INFO] DataSourcePool [TimeShift] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-07 15:03:51 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-07 15:03:52 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-07 15:03:52 [INFO] DataSourcePool [MultiHome] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-07 15:03:52 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-07 15:03:52 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-07 15:03:52 [SEVERE] Could not load 'plugins/Permissions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:531)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:138)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: while parsing a block collection
    in "", line 97, column 13:
    - 'general.time'
    ^
    expected , but found Scalar
    in "", line 109, column 16:
    - 'commandbook.clear.other'
    ^
    
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:58)
    at com.nijikokun.bukkit.Permissions.Permissions.(Permissions.java:132)
    ... 13 more 
    I ran my permissions in the parser, and I got those same two errors. I have no idea what scalar or anything like that means.

    My permissions file:

    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: 'Bitch'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'general.spawn'
                - 'magiccarpet.mc'
                - 'disarm.disarm'
                - 'disarm.gettnt'
                - 'commandbook.say.*'
                - 'commandbook.msg'
                - 'commandbook.motd'
                - 'commandbook.who'
                - 'commandbook.kit.kits.starter'
                - 'commandbook.whereami.*'
                - 'commandbook.compass'
                - 'commandbook.me'
                - 'commandbook.clear'
                - 'commandbook.ping'
                - 'commandbook.rules'
                - 'commandbook.kit.list'
                - 'mywarp.warp.basic.warp'
                - 'myhome.home.basic.*'
                - 'ichat.color'
        SubModerator:
            default: false
            info:
                prefix: '&cSubMod'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.*'
                - 'measuringtape.measur'
                - 'measuringtape.tape'
                - 'measuringtape.tp'
                - 'multiverse.mvtp'
                - 'multiverse.mvsetspawn'
                - 'multiverse.mvspawn'
                - 'multiverse.mvlist'
                - 'wormhole.use.sign'
                - 'wormhole.use.dialer'
                - 'wormhole.list''
                - 'commandbook.clear.other'
                - 'commandbook.give.*'
                - 'commandbook.setspawn'
                - 'commandbook.whois'
                - 'commandbook.kit.kits.SubModerator'
                - 'commandbook.spawn'
                - 'commandbook.more.*'
                - 'commandbook.slap.*'
                - 'mywarp.*'
                - 'myhome.*'
                - '/stopfire'
                - '/heal'
                - '/locate'
                - '/stack'
        Moderator:
            default: false
            info:
                prefix: '&3Mod'
                suffix: ''
                build: true
            inheritance:
                - SubModerator
            permissions:
                - 'flashlight.normal'
                - 'deathtpplus.deathp'
                - 'deathtpplus.streak'
                - 'wormhole.build'
                - 'wormhole.remove.own'
                - 'wormhole.config'
                - 'worldedit.*'
                - 'commandbook.kit.kits.*'
                - 'commandbook.kit.*'
                - 'commandbook.kick'
                - 'commandbook.bans.*'
                - 'commandbook.teleport.*'
                - 'commandbook.spawnmob.*'
                - 'commandbook.time.*'
                - 'commandbook.weather.*'
                - 'commandbook.rocket.*'
                - 'commandbook.debug.*'
                - 'commandbook.locations.*'
                - 'worldguard.*'
                - '-worldguard.fire-toggle.stop'
                - '-worldguard.reload'
        Admins:
            default: false
            info:
                prefix: '&1Admin'
                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:
        Drat333:
            group: Admins
            permissions:
        pandemic419:
            group: Moderator
            permissions:
        l_lost_the_game:
            group: Moderator
            permissions:
        tehcloak:
            group: Moderator
            permissions:
        Eskalay:
            group: Moderator
            permissions:
        FearTheTrooper:
            group: Moderator
            permissions:
        wongstars:
            group: SubModerator
            permissions:
        xturminatur:
            group: SubModerator
            permissions:
     
  31. Offline

    Jeyge

    Your permissions file seems to be fine so I'm guessing you have a problem with the naming of the permissions.yml file. Check to make sure the file is in the permissions directory and is named <worldname>.yml.
    You have an extra ' on this line:
    - 'wormhole.list''
     
Thread Status:
Not open for further replies.

Share This Page