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

    woodzy

    i dont have the ' in my file here ill post it for you AND YES ITS USEING 2.6 i updated it my self and added a small fix to the .jar....
    http://pastebin.com/vKyZwEes
     
  3. Offline

    dan123

    ok tried adding the quotes arouns the user name but still doesnt make me an admin ...
    here is my yml

    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.payment'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
        owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        '12311906':
            groups: owner
            permissions:
    
    
     
  4. Offline

    Lildirt

    I see why your file is different.
    You don't set it to read-only when you start your server. I do, therefore I still have the '' after each boot and restart and don't have the null's.
    However, I will retry what you said.

    EDIT: After doing again what you said, the permissions just shit out a ton of errors.
     
  5. Offline

    woodzy

    err shure well go with that :D
     
  6. Offline

    dan123

    id like to say that i didnt work im still not an admin/owner and idk why
    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.payment'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
        owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        '12311906':
            groups: owner
            permissions:
    
    
     
  7. Offline

    airsoftinva

    I tired completely reinstalling this plugin and i did ALL of my permissions over again. I typed "/reload" and reloaded the plugins and it said that the permissionsworld.yml folder changer your world.yaml to

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            permissions: null
        Regulars:
            default: false
            info:
                prefix: '&c'
                suffix: '&5>Regular<'
                build: true
            permissions:
            - lwc.protect
            - mywarp.warp.sign.warp
            - commandbook.msg
            - commandbook.clear
            - commandbook.say.me
            - TradeCraft.canBuy
            - TradeCraft.canSell
            - TradeCraft.canMakePlayerShops
            - TradeCraft.canDestroyShops
        Council:
            default: false
            info:
                prefix: '&7'
                suffix: '&9|Council|'
                build: false
            permissions:
            - lwc.protect
            - mywarp.warp.sign.warp
            - commandbook.msg
            - commandbook.clear
            - commandbook.say.me
            - TradeCraft.canBuy
            - TradeCraft.canSell
            - TradeCraft.canMakePlayerShops
            - TradeCraft.canDestroyShops
            - vanish.vanish
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions: null
        Admins:
            default: false
            info:
                prefix: '&3'
                suffix: Admin
                build: true
            permissions:
            - '*'
    users:
        airsoftinva:
            group: Admins
            info:
                prefix: '&3'
                suffix: '&8~Owner~'
            permissions:
            - '*'
            - godmode.*
            - mywarp.warp.sign.warp
            - mywarp.warp.sign.create
        lordedmond:
            group: Regulars
            info:
                prefix: ''
                suffix: ''
            permissions: null
        shego67:
            group: Admins
            info:
                prefix: '&9'
                suffix: '&4-Police-'
            permissions:
            - '*'
            - -vanish.dont.hide
            - -vanish.vanish
        sfkadj:
            group: Regulars
            info:
                prefix: ''
                suffix: ''
            permissions: null
        Telman:
            group: Council
            info:
                prefix: ''
                suffix: ''
            permissions:
            - vanish.vanish
        Flying_Monkeys:
            group: Regulars
            info:
                prefix: ''
                suffix: ''
            permissions: null
        abshierj:
            group: Council
            info:
                prefix: ''
                suffix: ''
            permissions: null
        dice_428:
            group: Regulars
            info:
                prefix: ''
                suffix: ''
            permissions: null
        Eglesia:
            group: Regulars
            info:
                prefix: ''
                suffix: ''
            permissions: null
    Now It doesn't let me change my permissions AT ALL! I need some help please. Because all of this was working fine until i typed reload once (which i have done before and this hasnt happened, but now everytime it does.) and now its completely useless.

    Thanks,
    air
     
    Lildirt likes this.
  8. Offline

    Lildirt

    Run the server with the permissions in read-only.
    Edit the permissions by TURNING OFF read-only.

    Edit: Found my essentials problem. Still have problems though.

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

    ioScream

    Thanks for your work. Would it be possible to add a "sudo" type command so I could set myself as a user, but still manage the server as an OP with something like /sudo.. or whatever you want to name it. It COULD be a simple implementation where you have to create a "sudo" group (as a passive group that only get's read when users use the command, but it doesn't set their permissions until then, and only for THAT command), and add users/permissions.. and commands would be typed as such "/sudo /plugin reload Permissions".. just an idea.
     
  10. Offline

    Celtic Minstrel

    If by "old format" you mean using the [square brackets] instead of hyphens for lists, you can do that just fine in 2.6. Of course, it will be converted when Permissions overwrites your file, but it will still work.

    Not necessary; the list can be indented and it will still work.

    They are called "single quotes", and they are optional. You don't need them, but it doesn't hurt to have them.

    Your tool looks fairly nice, but the Plugins page is not a good design. It should instead be a listbox, and it should list all jar files in some specific directory, so that people can throw in other plugins they want to use and make it work with your tool.

    Also, I can't endorse that your tool will encourage people to use Essentials. ;) I really don't like Essentials.

    Eh, it's not an evil file format for something the average user never needs to see. It's only evil when it's used like this as a configuration format.

    What if you make yourself an op? If that solves the issue, then you're running into core spawn protection and you will need to edit your server.properties to disable it (set the radius to 0 or something like that).

    I believe there was someone on IRC who was working on a sudo-like command, not for Permissions but as a separate plugin (probably relying on Permissions though). I can't remember who it was, though.

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

    rcjrrjcr

    Stop using "/reload" to reload Permissions! That forces a overwrite, replacing your changes. Use "/permissions -reload all". I've been saying this for the past few pages over and over again already. Yes, this thread may be 129 pages long, but at least read the previous few pages, so you know what's happening.
     
    airsoftinva likes this.
  12. Offline

    Lildirt

    Err, I can maybe get a reply?!

    --
    Problem: User killer2237 CAN NOT do anything, even rightclicking a block sets off the 'You do not have permission to use this' or whatever. He is in a non-worldguard-protected area when testing this.

    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Unregistered:
            default: true
            info:
                prefix: [Unregistered]
                suffix:
                build: false
            inheritance:
            permissions:
                - 'essentials.help'
                - 'essentials.msg'
                - 'essentials.list'
                - 'essentials.suicide'
                - 'essentials.rules'
                - 'lwc.blockinventory'
    
        Registered:
            default: false
            info:
                prefix: [Registered]
                suffix:
                build: true
            inheritance:
                - Unregistered
            permissions:
                - 'multiverse.CreativeWorld.spawn'
                - 'multiverse.LegitWorldFriends.spawn'
                - 'multiverse.PortalWorld.spawn'
                - 'multiverse.DnGWorld.spawn'
                - 'multiverse.world.spawn'
                - 'essentials.mail'
                - 'essentials.ping'
                - 'multiverse.list'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.afk'
                - 'essentials.motd'
                - 'essentials.me'
                - 'lwc.protect'
                - 'essentials.signs.free.use'
                - 'essentials.signs.disposal.use'
                - 'essentials.signs.heal.use'
                - 'essentials.signs.mail.use'
                - 'essentials.signs.mail.create'
                - 'essentials.depth'
                - 'essentials.getpos'
                - 'essentials.compass'
                - 'essentials.clearinventory'
        Moderators:
            default: false
            info:
                prefix: [Moderator]
                suffix:
                build: true
                inheritance:
                    - Registered
                permissions:
                    - 'essentials.kick'
                    - 'essentials.ban'
                    - 'essentials.essentials'
                    - 'essentials.reloadall'
                    - 'essentials.gc'
                    - 'essentials.plugin'
                    - 'essentials.broadcast'
                    - 'essentials.kill'
                    - 'essentials.mute'
                    - 'essentials.setwarp'
                    - 'essentials.delwarp'
                    - 'essentials.invsee'
                    - 'essentials.jails'
                    - 'essentials.togglejail'
                    - 'essentials.clearinventory.other'
                    - 'vanish.vanish'
                    - 'essentials.time'
        Admins:
            default: false
            info:
                prefix: [Administrator]
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        Lildirt:
            group: Admins
        killer2237:
            group: Moderators


    Plugins:
    AntiXRay
    CraftBook
    CraftBookCircuits
    CraftBookMechanisms
    CraftBookVehicles
    Essentials (just that one, no others)
    HeroChat
    HeroicDeath
    LWC
    MultiInv_1.5.2
    MultiVerse (Four worlds, connected all by portals.)
    NoCheat
    Permissions
    WorldEdit
    WorldGuard

    Yes, I do have permissions set FOR EACH WORLD. Meaning different .yml files for each world, though the permissions are the same.


    Are my plugins conflicting, or am I make a rookie mistake? (I saw this error before on the topic, but I don't remember how to solve it or where it was on this topic. Plus, I don't think it was in the current build/version of us anyways.)

    Sorry that I've posted on this a lot, but this is my only problem and it's taken almost a week to solve it. I bet Beta 1.5 will be here (in a couple weeks) before I can even get it to work. :(
     
  13. Offline

    Planitia

    Have you checked console to see if there are any errors? Maybe Permissions isn't loading at all. And as far as I know prefix and suffix need to be in - ' ' to work. If thats causing an error then it won't load.
     
  14. Offline

    Lildirt

    No errors, and the [Administrator] and [Moderator] work fine on HeroChat.
    Here's my log from a standard boot.
     

    Attached Files:

    • Log.txt
      File size:
      8.3 KB
      Views:
      2
  15. Offline

    Planitia

    Can you use paste bin.
     
  16. Offline

    Xhan13

    Can anyone help me with this? For some reason I cannot establish any prefixes or suffixes.
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Visitor:
            default: true
            info:
                prefix: %1[Viewer]
                suffix: &7
                build: false
            inheritance: null
            permissions:
            - 'assignpermissions.list.all'
        Adver:
            default: false
            info:
                prefix: &1[&3Adver&1]
                suffix: &e
                build: true
            inheritance:
            - Default
            permissions:
            - 'herosneak.sneak'
        Admin:
            default: false
            info:
                prefix: &1[&5Admin%1]%2
                suffix: &6
                build: true
            inheritance: null
            permissions:
            - '*'
            - '-herosneak.auto'
    users:
        Xhan13:
            group: Admin
            permissions:
            - '*'
            - '-herosneak.auto'
        Junbear:
            group: Admin
            permissions:
            - '*'
            - '-herosneak.auto'
        Hacker:
            group: Adver
        Player:
            group: Viewer
    I'm using these plugins:
    • AssignPermissions
    • HeroSneak
    • iChat
    • Vanish
    • WorldEdit
    • WorldGuard

    Sorry if this issue was already addressed but reading 127 pages worth of posts is too much for me. Please help QQ
     
  17. Offline

    Noah1997

    Why does my permissions file constantly change to a weird horizontal format?
     
  18. Offline

    Lildirt

    Alrighty, here you go.

    Pastebin link: http://pastebin.com/L5UN6KNc

    Ignore the "**** NOT ENOUGH RAM!!"
    It will soon be on a dedicated server, if I can get it working that is.
     
  19. Offline

    airsoftinva

    Okay I failed to see that, thanks a lot, nowi have to start working on rewriting all my permissions xD
     
  20. Offline

    JackTDawson

    thanks bro. And I am already aware of the plugins listings.. I just threw that up there to show people what its for. As for essentials.. I love those plugins accept the group manager part. Anyhow.. already helped two people today through PM to get their server running.. one guy made a dragon that was HUGE.. took him 29 hours to make it. I was impressed. anyhow.. ttyl :)
     
  21. Offline

    Planitia

    You appear to be using both & and % for colour codes. Try replacing all of the %'s with &'s where you are using colour codes.

    Everything is fone there. All i can see in the perms file is that you aren't using - ' ' for inhertance and fpr prefix and suffix. I highly recommend trying it with those added.
     
  22. Offline

    Lildirt

    I did that before, but I'll do it again!
    Though, they work and thats all I know, they work without the [ ] too.
    :s

    Edit: Nothing happened. He still can't even rightclick anything.
     
  23. Offline

    Planitia

    Is there a chance that build inherits? Try setting Visitor build to true and see if it helps. other than that there is something very wrong.
     
  24. Offline

    Paul_VB

    i have a problem. i cant change anyones rank when the servers up. i have to restart the server to change anything! why
     
  25. Offline

    Lildirt

    I already tried that in the past, I infact disabled inheriting for most groups except for Unregistered to Registered, and Registered to Moderator.
    :/ Yep, there must be something very wrong.
     
  26. Offline

    rcjrrjcr

     
    Planitia and Paul_VB like this.
  27. Offline

    Paul_VB

    thanxs!

    btw if anyone is interested, ive made a small program that will let u ude the old v2.5.5 config format with the 2.6 jar.
     
  28. Offline

    Xhan13

    Did everything you said with no success =/ Prefixes and suffixes still no showing
     
  29. Offline

    rcjrrjcr

    Do you have a chat plugin (EssentialsChat, iChat etc) ?
     
  30. Offline

    ioScream

    I mentioned it on IRC about 25 minutes ago :)

    EDIT: My quote got raped somehow..
     
  31. Offline

    City Builder

    Since updating permissions when people enter our nether (multiverse) they are no longer in the group that they are in when they are in the world. Can somebody tell me what is messed up or what I did not configure in the latest permissions that would make it so that when people portal to our nether, it loses their group?

    Bukkit 670

    Thanks
     
Thread Status:
Not open for further replies.

Share This Page