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

    treepunchah

    thanks for reply!
    i downloaded and put newest version in plugins folder, now i get a different error that actually says:
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
    here's the paste bin to the new output:;
    http://pastebin.com/92ARXFxJ

    and my world yaml:
    http://pastebin.com/NPSguxkC
    this time i only changed user names ... trying not to goof it up. :)
    [MERGETIME="1299595924"][/MERGETIME]
    @treepunchah
    Your permissions is WAY out of date.... you are using v1.0 the latest is 2.5.2

    That is most likely your problem

    ~Sol[/quote]

    how do I check the version number? I clicked on the 2.5.2 download at the beginin of this thread. I thought I had the right version...
     
  3. Offline

    Jeppe

    it seems like my permission config.file wasent placed right
     
  4. Offline

    Sol

    Correct on all counts :)

    @treepunchah
    Maybe it was the other permissions thread? It's confusing there are like 2 or 3 threads for this plugin since it's been retired and picked up again by other devs.

    All I can suggest is to r-edownload it again, making sure you remove any old versions.

    ~Sol
     
  5. Offline

    zaklampje

    I still don't get why this doesn't work:
    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.
    #   Does not work for the default world.
    #  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:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       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:
    #       - '-general.time'
    ##
    #   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:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            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:
        zaklampje:
            group: Admins
            permissions:
    It just says: Permissions found... But as u see, I'm an admin. But I can't use commands, and I'm in no group... Any suggestions?
     
  6. Offline

    treepunchah

    @treepunchah
    Maybe it was the other permissions thread? It's confusing there are like 2 or 3 threads for this plugin since it's been retired and picked up again by other devs.

    All I can suggest is to r-edownload it again, making sure you remove any old versions.

    ~Sol[/quote]

    I agree! It is confusing. THank you for looking at my concerns. I am really grateful!
    I downloaded newer ver, and now get this:
    http://pastebin.com/92ARXFxJ
     
  7. Offline

    Jandalf

    ok, but what did u expect to happen? which plugins do u use?
     
  8. Offline

    zaklampje

    I use defaultcommands, magiccarpet, monstertamer, and worldedit. Gonna use more later, but first want to get this running.
    Well, no errors and stuff. Only that I'm not an admin, and so I can't use all those commands...
     
  9. Offline

    saturnine_nl

    Since I've been here i've seen 90% of the posts are caused by typos. So I wrote a little guide to help find and solve those typos. It's the first version of it and I'm happy to expand it with more details and solutions. please feel free to comment. I hope this guide will help everyone here.

    Greetzzz Saturnine
     

    Attached Files:

  10. Offline

    treepunchah

    I have been working at getting permissions to work for some time. I read other peoples issues and try the fixes offered to them. Still no luck. I am not a developer, but not an idiot either.
    here is the pastebin of my terminal output:
    http://pastebin.com/ZuGjaS8z

    problem is:
    could not load permissions jar, invalid plugin exception caused by bad version number in .class file.

    Have tried: (lots but now this...)
    -have deleted "everything" (old, new and trash) to begin again.
    -downloaded 2.5.3 from link at top of page
    -if i open the jar, the pom.xml says version 2.5.1 (see below) even though I downloaded 2.5.3
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.nijikokun.bukkit</groupId>
    <artifactId>Permissions</artifactId>
    <version>2.5.1</version>
    -pom.xml also says <version>0.0.1-SNAPSHOT</version> for bukkit version.

    you can see in pastebin that output says (This server is running Craftbukkit version git-Bukkit-0.0.0-493-g8b5496e-b493jnks (MC: 1.3))

    could one of these two differences in version number be the problem? and if so how do I fix it?
    Thanks to Sol and Jandolf for their suggestions to get newer version and their efforts earlier today. Still having problem.
     
  11. Offline

    zaklampje

    Yes, exactly what I asked. Someone to explain all things. Thnx man.
     
  12. Offline

    treepunchah

    great document! Thanks for all your effort.

    I agree, most things are typos!
    I am getting an error "Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file"
    and have no clue what to do.
    I can find and fix typos but this is beyond me.
    Any ideas?
     
  13. Offline

    _Oni_

    Which version of java do you use? Maybe you should update java... ;)
     
  14. Offline

    zaklampje

    hmmm, and what if I get in the chat screen: [Permissions] You lack the necessary permissions to perform this action.

    ???
     
  15. Offline

    saturnine_nl

    Maybe somehow the server tries to load 2 different versions of permission ? I had that problem yesterday when i updated and renamed the old one, instead of kicking it out of my plugin folder.
     
  16. Offline

    petteyg359

    Shouldn't cause any problems unless you're using it as a dependency while building another plugin.
    The only important part of that is "b493".

    What other plugins are you running?
     
  17. Offline

    TOAST7312

    Misas 64x64 High Def texture pack.
     
  18. Offline

    saturnine_nl

    that could have a lot of reasons.

    could you pastebin your permission.yml file ?
     
  19. Offline

    zaklampje

  20. Offline

    saturnine_nl

    I can't see anything wrong with your permissions file.
    It could be that the plugin that gives you the error is not working with permissions.
    You don't have groupmanager etc plugins ? these are known to cause errors with
    permission.
    You could open the server console window and type op zaklampje
    wich gives you OP rights and overrule every permission.
     
  21. Offline

    mfkG

    Hello,
    i'm trying to use multiple Permissons per World. So i made a permission file for the main world and named it after. and made a permissions file for survival also in the /Permissions Folder, wheres also the main is. i also tried it to move to the "survival" folder. but it always takes the permissions from the mainworld.

    what do i need to make to use a permission file per world? i don't get it ;(

    edit: ok, this seems to not really work. very strange behavior!
    i put myself in a group with non permissions, but still, i have some permissions. f.e. i can use all of WorldEdit or Commandbook, but i have no access to commands from other plugins like permissions -reload, or multiverse porting. (and no, no of this commands i have access in defined in the permissionsfile of this world. thats imo very strange and i dont know whats wrong here.)
     
  22. Offline

    Jandalf

    thank u:)
    [MERGETIME="1299606281"][/MERGETIME]
    try this http://forums.bukkit.org/threads/ad...orld-permissions-493.5974/page-36#post-113235
     
  23. Offline

    treepunchah

    none actually, i took everything off until I could get permissions functioning
     
  24. Offline

    zaklampje

    well, I have magiccarpet, defaultcommands, magiccarpet and monstertamer...
    And what if I this: 'Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException' ???
     
  25. Offline

    Jandalf

    maybe the dl is broken and points to the wrong version, down in my post is my real 2.5.3
    [MERGETIME="1299606678"][/MERGETIME]
    the mod group shouldnt inherite default when they have '*'
    [MERGETIME="1299606756"][/MERGETIME]
    nice guid, ill ask TheYeti to make a link to your post, because so it will be 5pages ago in 2days;)
     

    Attached Files:

  26. Offline

    zaklampje

    Well, still not working...
    [MERGETIME="1299607486"][/MERGETIME]
    any suggestions?
     
  27. Offline

    Jandalf

    do u rename the yml file to ur default world name? (default: world.yml) do u put it into /plugins/permissions/ ?
    does the /permissions -reload all command work?
     
  28. Offline

    Lomz

    Running Craftbukkit version git-Bukkit-0.0.0-502-ge211472-b514jnks

    Running permissions 2.5.1. I get this error a lot. I can't figure out why.

    Code:
    [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroups(Control.java:625)
        at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:45)
        at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:309)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:112)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:77)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:369)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Switching to 2.5.3 stops this error from occurring, but an error comes up on server startup relating to CraftIRC (which to my knowledge shouldn't have anything to do with eachother). I don't know if you know anything about that or not. I removed CraftIRC so it wouldn't load, then users are given abilities they shouldn't be able to use normally (such as the /back command). Everything just seems like a big mess and I can't figure out what's wrong. :/

    Here's the error when it tries to load CraftIRC (dunno if that'll help with anything)

    Code:
    [SEVERE] com/nijikokun/bukkit/Permissions/Permissions loading CraftIRC v2.0 Preview 10 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
        at com.ensifera.animosity.craftirc.CraftIRC.onEnable(CraftIRC.java:114)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Permissions
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
        ... 11 more
    Also, my config file for permissions. Thanks in advance if you're able to help. :)

    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        Default:
            default: true
            info:
                prefix: '&c'
                suffix:
                build: true
            inheritance:
            permissions:
                - 'multiverse.world.spawn'
                - 'essentials.compass'
                - 'essentials.getpos'
                - 'essentials.msg'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.list'
                - '/regionmembership'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'cleaner.*'
                - 'essentials.ban'
                - 'essentials.banip'
                - 'essentials.kick'
                - 'essentials.unban'
                - 'essentials.unbanip'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.tppos'
                - 'worldedit.selection.*'
                - '/region'
        Admin:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
    #admins
        Lomz:
            group: Admin
            info:
                prefix: '&4[&9A&ad&9m&ai&9n&4] &c'#Random note goes here
                suffix: ''
    #Mods
        Relentless_x:
            group: Moderator
            info:
                prefix: '&c[ZB]&5[Mod] '
                suffix: ''
        FilipT:
            group: Moderator
            info:
                prefix: '&c[TCoT][TFlippy]&5[Mod] '
                suffix: ''
        Dreamersnova:
            group: Moderator
            info:
                prefix: '&5[Mod] '
                suffix: ''
        Utriax:
            group: Moderator
            info:
                prefix: '&9[Prince]&5[Mod] '
                suffix: ''
     
  29. Offline

    zaklampje

    Well, it's called world.yml, it's in the place where it was from the first second (in permission map), and the '/permissions -reload all' doesn't work...

    And Lomz, don't use groupuser... It blocks permissions...
     
  30. Offline

    mfkG

  31. Offline

    Lomz

    @zaklkampje, I don't have GroupUsers installed and never have.
     
Thread Status:
Not open for further replies.

Share This Page