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

    Convieo

    Well, without permissions I can use /time day, and it turns to day... From what I can tell I'm set to be admin, with the ability to use every command, yet I can't use /time day or even /list anymore. Things like my warp points and other functions work, the give command doesn't though.
     
  3. Offline

    greed

    i feel really dumb. i cant figure out how to give my normal players the ability to use essentials economy. or any other commands.... i have all the essential packs and lwc as well as vampires but i have no idea how to get any of it working for anyone but me...... if anyone could idk do it for me or walk me throu it or something, anything please i need help:( thank you for reading this if you do.
     
  4. Offline

    Nathaniel

    Did you give them permissions to use it? Copy/Paste your Permissions into the Code tab, or use pastebin.
     
  5. Offline

    saturnine_nl

    are you using essentials in combination with scrapbukkit plugins ? i had the same problem, got it fixed by ditching scrapbukkit.
     
  6. Offline

    greed

    well i dont really know how to use permissions....i know how to install regular things like lwc but permissions hurts my brain. thank you for the help.
     
  7. Offline

    saturnine_nl

    @TheYeti : I have been thinking about how you could implement a good weighting towards groups.
    I don't know how the interperter parses the config but the natural order almost all people use is default first, admin last. So the weight of a group could depend where it is in line. aka a group below in the config has more weight then the group above. On the scripting side it should be 'easy' to program , just add a counter to the parser and with each group the counter could be ++. link those values to each group and you have a decent weighting system. with no additional configrules added. for other plugin developers they could easly do a compare of these weighting counters between 2 groups, the bigger number always win.

    greetzzz Saturnine
     
  8. Offline

    saturnine_nl

    where does it hurt ;) ... with other words wich part needs a little explanation ?
    [MERGETIME="1299794117"][/MERGETIME]
    Check the name of the world.yml inside the permissions folder, this has to be exact the same as your worldname and yes it is CaSe sensitive.
     
  9. Offline

    Fyndler

    Getting the same error, and it has the same name in the folder :/
     
  10. Offline

    MiKegamer

    sry for that stupid question.
    i heard it would be possible to change the colour of a name with the permissions plugin.
    but i did not find an option for that. is it possible?
    if yes: how?
    do i need an additional plugin to do that?
     
  11. Offline

    saturnine_nl

    use a chat plugin and you can add a color code to the prefix of a group or user.
    you could use the ichat plugin for example.
     
  12. Offline

    ShooShoSha

    Hey, I have a slight issue: For the most part all of the plugins work and I believe my Permissions' config file is working fine. Only, EVERYONE is in the default group. I can't seem to add users to the other groups. Anytime I change the "users:" part, it messes up entirely. Here's the code:

    Code:
    plugin:
        permissions:
            system: default
    groups:
        Guest:
            default: true
            info:
                prefix: '&fGuest'
                suffix: ''
                build: false
            inheritance:
            permissions:
        User:
            default: false
            info:
                prefix: '&2User'
                suffix: ''
                build: true
            inheritance:
                - Guest
            permissions:
                - essentials.home
                - essentials.sethome
        Mod:
            default: false
            info:
                prefix: '&5Mod'
                suffix: ''
                build: true
            inheritance:
                - User
            permissions:
                - essentials.kick
                - essentials.ban
                - essentials.unban
                - essentials.unbanip
                - essentials.banip
        Admin:
            default: false
            info:
                prefix: '&4Admin'
                suffix: ''
                build: true
            inheritance:
                - Mod
            permissions:
                - essentials.*
        Owner:
            default: false
            info:
                - prefix: '&0Owner'
                - suffix: ''
                - build: true
            inheritance:
            permissions:
                - '*'
    users:
        ShooShoSha:
          group: Owner
        L2PiE:
          group: Admin
    Thanks.
     
  13. Offline

    saturnine_nl

    use the following format to add permissionrules - 'plugin.rule' ... the ' ' are important too
     
  14. Offline

    Convieo

    I'm not using essentials, no.
     
  15. Offline

    ShooShoSha

    I got it fixed. Yeah!
     
  16. Offline

    decarthado

    This is something I was about to ask for. I'm using Essentials, and Zenexer seems to have removed the /modgrp command. It would make more sense anyway if those commands were in here.

    Edit: I'd love it if you'd make /promote and /demote commands which move a person up/down their specific inheritance chain.
     
  17. Offline

    greed

    i don't know how to get the plug in for each group....i don't really understand what im supposed to do. when i type something like -'essentials.example' its written in red which i assume means it wont work also lwc wont work for anyone not even me, even though i have the -'*' thing under admin permissions and user permissions. i don't really know how to do it. under permissions do i put the .jar file name there like -'essential.example' or do i put the command like -'/warp' im so stuck and the vid i tried watching was for the old permissions by that other person. any help would be greatly appreciated
     
  18. To all: add your yml code into the following website and let it check for errors, if it comes out without any errors then there is something else wrong, but I think that most mistakes are made by simple typo's.
    Well here is the website...... just add code in the screen on the left (delete the text that is allready inthere first and then press control + enter.
    http://yaml-online-parser.appspot.com/
     
  19. Offline

    saturnine_nl

    @greed : if you use notepad++ , in the menu goto settings -> preferences -> click the tab language menu/ tab settings :
    put a mark in the box [v] replace by space.

    permissions is based on a groupsystem , groups are a collection of users that share the same privileges.
    So begin to think what kind of groups you want to have, you could use Default (guests) , Players , Moderators and Admins for example. I have an example.yml you could modify and use. i'll add it to this post. Could you post your list of plugins you have or want to use ?

    @RadioMan : is everything working now ?
     

    Attached Files:

  20. Offline

    greed

    http://ess.earth2me.com/index.php/Install_Guide the first one....that is all of them in one is the one id like to get working. i did as you said but idk what that does or did. i tried using yaml as well like that one guy posted (sorry man i forget your name) but that seems to have done nothing. thank you so much for your help man i really appreciate it. we all do on my server. i know im wasting your time but still, thank you so much man:) the groups fro now i would only like what it is now. maby without mod so just 2 lol.
     
  21. Offline

    Ultra695

    I keep getting "cannot pass event BLOCK_PLACED/DESTROYED to permissions plugin (plus a whole bunch of java crap)"

    permissions 2.5.3, cb somewhere around 450.

    nevermind, found problem after re-reading install instructions, don't know how i missed the rename-to-world thing.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  22. Sorry had to repost, because I don't know how this @ works for now, so I did this with a quote and a copy of my other post, which I will delete.
    @saturnine_nl: everything is working except that I can't issue the /permissions -reload all or /permissions -reload world command in my case.
    But that's not very important at this moment, since I only have a small server now, just want to keep griefers out as much as possible and I can do that with essentials protection to keep visitors away from any flint or iron and with permissions to keep everybody away from building or finding these items themselves.
    Just so I can say this among normal adults here, what is the fun in griefing, people do know they get banned anyhow so they never get to see the pain it caused to the builders, but I think that they are just kids being bored and don't even like the game to begin with.
     
  23. Offline

    saturnine_nl

    you mean the essentials package. I use that too, some part of it. if you read their command guide, they explain what the package contains. http://ess.earth2me.com/index.php/Command_Reference

    if you want to add a function of the package available for a group. let's say /home you 'll add the permission rule for /home to the group that is allowed access to /home

    for example players are allowed to go to their homes with /home

    Code:
        Player:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
               - Default
            permissions:
               - 'essentials.home'
               - 'essentials.sethome'
    you don't have much use of going home if you can't set a point inside your home, so add essentials.sethome too

    One thing I haven't explained , that's inheritance

    instead of giving a every group individual rights, you can inherit from an other group

    say group Default has

    plugin.rule1
    plugin.rule2
    plugin.rule3

    and group Player has

    plugin.rule4
    plugin.rule5
    plugin.rule6

    without inheritance you would get

    group Default:

    plugin.rule1
    plugin.rule2
    plugin.rule3

    group Player

    plugin.rule1
    plugin.rule2
    plugin.rule3

    plugin.rule4
    plugin.rule5
    plugin.rule6

    with inheritance you could inherit rules from group default

    group Default:

    plugin.rule1
    plugin.rule2
    plugin.rule3

    group Player:

    inheritance:
    - Default

    plugin.rule4
    plugin.rule5
    plugin.rule6

    gives the same effect , all the rules are 'copied' and added to the group by inheritance.
    makes things a lot easier to manage.

    I'm glad to help everyone here. If you're not familiar with how it works it can be overwelming.
    [MERGETIME="1299806093"][/MERGETIME]
    i never get the why for griefing ... maybe we're too adult :D
    I use the lwc plugin for chest and sign protection. works great and of course essentials protection. Although i only run the server for a couple good friends who are as adult as I am , so no griefing. By the way. in the serverconsole window you can also give a permissions -reload all , just don't use the /
     
  24. Offline

    greed

    so i have to add all of thoughs little blue ovle things to the list if i want people to be able to use it..oh well thank you. you made my day:) thank you so much man:)
     
  25. Offline

    dissonance

    I'm not sure if anyone has had this problem before (a quick search didn't really turn up much) so I figured I'd ask. When I give a group a permissions, for some reason they aren't able to use it.
    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Users:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'war.player'
                - 'essentials.help'
                - 'essentials.motd'
                - 'myhome.home.basic.set'
                - 'myhome.home.soc.*'
                - 'lightvote.*'
                - 'mywarp.warp.basic.warp'
                - 'mywarp.warp.basic.list'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.getpos'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.helpop'
                - 'essentials.msg'
                - 'essentials.list'
                - 'essentials.whois'
                - 'essentials.back.ondeath'
                - 'essentials.protection.create'
                - 'essentials.protection.use'
                - 'essentials.mail.create'
                - 'essentials.mail.use'
                - 'essentials.spawn'
        Mods:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.time'
                - 'essentials.tp'
                - 'essentials.tppos'
                - 'essentials.list'
                - 'essentials.nick'
                - 'essentials.broadcast'
                - 'essentials.burn'
                - 'essentials.ext'
                - 'essentials.kick'
                - 'essentials.mute'
                - 'essentials.jump'
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        dissonance:
            group: Admins
        Sulphyr:
            group: Mods
        IllusiveLogic:
            group: Mods
        Saisaith:
            group: Mods
    This is my current config. Although Users and Mods have access to the myhome and war commands, in game it's as if they don't. It worked yesterday, but now it doesn't. I've tried downgrading permissions, but to no avail. Any ideas? Thanks, in advance.
     
  26. Offline

    saturnine_nl

    Your missing a group named Default: mods inherit from this group but if the groupname doesn't exist, permissions will not function properly. You could rename Users to Default or change the inheritance of Mods to Users.
    [MERGETIME="1299807822"][/MERGETIME]
    just be sure every rule has the same 'style' as my example. then you should be alright.
     
  27. Offline

    dissonance

  28. Offline

    Fyridor

    I feel for you Yeti... So many posts to read and yet you do read all of them and respond to them. Major props for you, keep up the good work! Loving your plugin!
     
  29. Offline

    greed

    ok so ic been trying everything trying to copy your stuff to the letter but nothing works... here it is hmmmm cant fugure out how to get it like you guys do so heres just a copy past of it all.


    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    # - 'foo.bar'
    # - 'essentials.warp.list'
    # - 'essentials.sell'
    # - 'essentials.balance'
    # - 'essentials.pay'
    # - 'essentials.msg'
    # - 'essentials.afk'
    # - 'essentials.rules'
    # - 'essentials.motd'
    # - 'essentials
    # - 'essentials.list'
    # - 'essentials.mail.send'
    # - 'essentials.helpop'
    # - 'essentials.whois'
    # - 'essentials.signs.protection.create'
    # - 'essentials.signs.protection.use'
    # - 'essentials.signs.trade.use'
    # - 'essentials.signs.buy.use'
    # - 'essentials.signs.sell.use'
    # - 'essentials.home'
    # - 'essentials.sethome'
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - '*'
    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:
    greedisgood:
    group: Admins
    permissions:
    Herpina:
    group: Moderator
    info:
    prefix: 'Moo'
    suffix: 'Cow'
    permissions:
    - 'herp.derp'
    Derpina:
    group: Admins
    permissions:
    - '-derp.derp'

    so can you see anything wrong? i have no idea what im doing....do i need to rename the folder if so what to. i have 2 up (idk how i got 2) one is wolrd one.yml (spelled wrong i know) and foo.yml. any help again would be greatly appreciated.
     
  30. Offline

    saturnine_nl

    oops forgot something i put up in the example ... sorry
    # means it's comment remove the # before the rules

    everything looks good. In your permissions folder you have this file you just copied.
    rename this file to the world your using. the worldname can be found in the main bukkit folder
    proberly it's named world so the permission file name will be world.yml

    that will get you going, you could do some refinement afterwards. but first priority should be to get things working.
     
Thread Status:
Not open for further replies.

Share This Page