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

    Jandalf

    ok i dont know-.- maybe TheYeti could help
     
  3. Offline

    zeph

    In the same location. It all goes in there. Edited to make that clearer.
     
  4. Offline

    korin125

    Should I just send him a message?
     
  5. Offline

    zeph

    First you need a [GEN] plugin which allows kick ban. Lets assume it's called "essentials" and the command is "essentials.kick" and "essentials.ban"
    Under "Mod:", under "Permissions:" you add:
    - 'essentials.kick'
    - 'essentials.ban'
     
  6. Offline

    prismweed

    i appreiciate the help but i have no idea what the problem is. i copied jandalf's file and before i edited it i tried to see if i worked and i get "could not determain persmissions version: 2.5.3
     
  7. Offline

    saturnine_nl

    my multiworld setup works too ...
    makes me [​IMG] ...
    thanks to the 2.5.3 version
     
  8. Offline

    zeph

    try
    http://pastebin.com/jACr7CRz
    --- merged: Mar 7, 2011 9:43 PM ---
    Code:
    plugin:
        system: default
        copies:
    
    groups:
        Default:
            default: true
            info:
            prefix: ''
            suffix: ''
            build: true
            inheritance:
            permissions:
                - 'stargate.use'
                - 'stargate.create'
                - 'stargate.destroy'
                - 'stargate.hidden'
                - 'stargate.private'
    
     
  9. Offline

    korin125

    Zeph that had even more errors than before. :(
     
  10. Offline

    zeph

    Yeti, would it not be better (if possible) to assign users to groups, rather than a group to users?

    EG:
    Code:
    users:
        group: Admins
            Bob:
                permissions:
                    - 'extra.permission'
            Jim:
            Fred:
        group: Mods
            Alvin:
            Simon:
            Theodore:
    
    It'll be a lot shorter that the current way around it is.
    --- merged: Mar 7, 2011 9:50 PM ---
    In console? could be a setup thing then a permissions thing. Can you post them?
     
  11. Offline

    korin125

    They were basically the same errors I had before I added spaces to the file, but I fixed. Either way my LoginMessage doesn't work.
     
  12. Offline

    prismweed

    thnks again for the attempted help but the result is the same wich leads me to believe its A: my bukkit build, B:everyones have a format error when setting persmissions (highly unlikly) or C: theres a mystery error on my version alone.

    i have one more request and if this doesnt work im switching back to unofficial heyo builds because although they are faulty the essentials that i need for my server will run.

    my ingame name is prismweed. if you can edit the yml file to work for stargates for me then that would amazing but so far every config ive made and tried by people all get me the same result in console


    "could not determain permissions verion:2.5.3"

    and

    "[stargate] permissions not loaded, using defaults"
     
  13. Offline

    saturnine_nl

    it's how you define it yourself, i have my world.yml structure to user roles rather then users.
    still in testing phase though, but everything is working.

    Code:
    plugin:
        permissions:
            system:
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
               # essentials core:
               - 'essentials.depth'
               - 'essentials.getpos'
               - 'essentials.compass'
               - 'essentials.rules'
               - 'essentials.motd'
               - 'essentials.help'
               - 'essentials.helpop'
    
               # debug temporary shit
               - 'essentials.world'
               - 'permissions.reload'
               - 'essentials.reloadall'
    
               - 'namespace.who'
               - 'namespace.who2'
               - 'namespace.mark'
               - 'namespace.unmark'
               - 'namespace.find'
               - 'namespace.find.xyz'
               - 'namespace.find.player'
               - 'namespace.find.playerstrong'
               - 'namespace.find.space'
               - 'namespace.find.north'
               - 'namespace.find.category'
               - 'namespace.rename'
               - 'namespace.vidaid'
               - 'namespace.prune'
               - 'namespace.resize'
               - 'namespace.expand'
               - 'namespace.displaypos'
               - 'namespace.category.create'
               - 'namespace.category.remove'
               - 'namespace.category.set'
               - 'namespace.category.togglenopvp'
               - 'namespace.category.togglenomvp'
               - 'namespace.category.setregen'
               - 'namespace.category.togglenoblockbreak'
               - 'namespace.category.togglenoblockplace'
               - 'namespace.category.togglenoblockremove'
               - 'namespace.category.togglenoexplos'
    
        Player:
            default: false
            info:
                prefix: 'Player'
                suffix: ''
                build: true
            inheritance:
               - Default
            permissions:
               # essentials core:
               - 'essentials.msg'
               - 'essentials.afk'
               - 'essentials.me'
               - 'essentials.list'
               - 'essentials.mail.send'
               - 'essentials.whois'
               - 'essentials.nick'
    
               #multiverse
               - 'multiverse.portal.list'
               - 'multiverse.list'
    
               #LWC
               - 'lwc.protect'
    
               #SpawnControl:
               - 'SpawnControl.sethome.basic'
               - 'SpawnControl.home.basic'
               - 'SpawnControl.spawn.use'
               - 'SpawnControl.groupspawn.use'
    
               #DeathChest
               - 'DeathChest.use'
               - 'DeathChest.freeSign'
               - 'DeathChest.allowQuickLoot'
               - 'DeathChest.protect'
    
               - 'WorldWarp.list'
    
        Builder:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
               - Player
            permissions:
               # essentials core
               - 'essentials.top'
               - 'essentials.jump'
               - 'essentials.kit.*'
               - 'essentials.time'
    
     #   Tester:
     #       default: false
     #       info:
     #           prefix: ''
     #           suffix: ''
     #           build: true
     #       inheritance: Builder
     #       permissions:
    
     #   Mod:
     #       default: false
     #       info:
     #           prefix: ''
     #           suffix: ''
     #           build: true
     #       inheritance: Tester
     #       permissions:
     #          - 'SpawnControl.sethome.proxy'
     #          - 'SpawnControl.spawn.set'
     #          - 'SpawnControl.groupspawn.set'
      
     #   Admin:
     #       default: false
     #       info:
     #           prefix: ''
     #           suffix: ''
     #           build: true
     #       inheritance: Mod
     #       permissions:
     #          - 'SpawnControl.config'
    
     #
     
    users:
        saturnine_nl:
            group: Player
            permissions:
      
    just ignore the part of # debug temp shit

    as you can see every group inherits from the one above.
    It's just the way it works best for me. and you can define it
    in any way you see fit. Just wanted to show me my system.

    Greetzzz Saturnine
     
  14. Offline

    Machete.Panda

    Thats in "Minecraft\plugins\Permissions\world.yml" correct?

    I fixed those... still not working.
     
  15. Offline

    petteyg359

    world.yml:
    Code:
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   Does not work for the default world.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    plugin:
        permissions:
            system: default
            copies: Anarchia
    
    1. Where's Anarchia.yml?
    2. If world is your default world, RTFM: "# Does not work for the default world."
     
  16. Offline

    yeahMan

    http://pastebin.com/ki9jKQZb
    what did i do wrong...
    cb biuld 445
    permissions latest.
    only Ops have commands working and everyone else is pulling "[INFO]: null" errors :/

    I originaly tried using my old config from permissions 2.0 but realized parsing was different so I did a quick rework of someone else's posted earlier and renamed to the proper world name.
     
  17. Offline

    Machete.Panda

    'Anarchia' is on the same server as 'world'. What does that mean '# Does not work for the default world'? It says
    'system: default'. its like a contradiction. help what does this mean?
     
  18. Offline

    korin125

    I think I actually got permissions to work after almost a week, now my last question:

    Can you change a user's group through the game client? Say, I want to have everyone by default to not be able to build, but if i know them I will make them one level up.
     
  19. Offline

    saturnine_nl

    1. groups:
    2. Alien:
    3. default: false
    4. info:
    5. prefix: '&1[&6Alien&1]&e'
    6. suffix: '&f'
    7. build: true
    8. inheritance:
    -
    the inheritance in group alien has to be empty or a group assigned to it.
    it cannot have only a -
    Is the group Alien neccesary ? it looks like it's an empty group. If you want
    to have 'unknown' users assigned to an empty group you could rename the
    groupname to Default and set te the default value to true. the other groups
    can't have default set to true then.

    furthermore i can't see any users assigned to the groups.

    I hope this helps...

    Greetzzz Saturnine
     
  20. Offline

    yeahMan

    Alien is for bad players, i'll remove it though as we haven't used it much anymore.
    I removed all the players from the users: line down to save you the trouble of looking through them all (quite a large list).
     
  21. Offline

    petteyg359

    If you put "# Does not work for the default world" with the line above it, and apply context... If you really can't perform such basic association, please stop trying to run a server, and borrow and read a few books on common sense from your local library.

    Regardless of the logical impossibility of copying Anarchia, per the above: You have no Anarchia.yml. How the heck do you expect it to copy something that doesn't even exist?
     
  22. Offline

    Machete.Panda

    Hoe did you get it to work? What solution worked best for you? Thanks
     
  23. Offline

    saturnine_nl

    @yeahman: the group name Default is reserved for users not assigned to a group. if you look @ my config (a few posts back), you can see an example. except for the debug temp part ... thats for testing purpose only. I have the build option disabled for the default group, they may look around but not much else.
     
  24. Offline

    Machete.Panda

    I have no clue why your being rude. now go f--k yourself. I could use some real help, not an @zz hole response.
    --- merged: Mar 7, 2011 11:28 PM ---
    ok, kewl. thank you! I think this answers my question too
    --- merged: Mar 7, 2011 11:29 PM ---
    Is it too much to ask for the plugin manager to get all this cluster f--k pulled together and documented? :rolleyes:
     
  25. Offline

    korin125

    First I updated to 2.5.3 from 2.5.2 Don't know if anything major happened or not, the changelog doesn;t seem to indicated that. After that I continue to fiddle with my config and it worked.

    My real question is how do I move player from one group to another? Can it be done through the game. I don;t understand how this could be usable if you had to do it manually.
     
  26. Offline

    yeahMan

    K, I tried everyone's advice and still no luck.
    I removed the inheritance line from aliens, changed holedigger to default, etc etc.
    It must be a conflict with essentials or something? :/
     
  27. Offline

    Machete.Panda

    THIS WORKED. What also helped out is that there was further documentation in the yml file. Thanks korin!

    I got it to work by following the advice I just quoted in this post.
     
  28. Offline

    saturnine_nl

    I took a closer look @ yor .yml and saw that you had every inheritance configured as a list aka
    inheritance:
    - group
    I guess permissions doesn't like that, so try inheritance: group

    also make a backup from your yml file, delete all groups but one and see if that one does work.
    if that works you know you're on the right way and can add more groups.

    Good luck [​IMG]
     
  29. Offline

    korin125

    Can someone please answer how to change a person's permissions group?
     
  30. Offline

    saturnine_nl

  31. Offline

    korin125

Thread Status:
Not open for further replies.

Share This Page