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

    saturnine_nl

    Removing tabs in a .yml file using notepad++

    1: from the menu -> search -> replace or use [ctrl +h]
    2: set searchmode to extended (radiobutton)
    3: find what: \t
    4 replace with: insert spaces here
    5: replace all.
    6: no more strange tab related permission errors.

    cheers ...
     
  3. Offline

    Lord Chaos

    So I removed everything down to the default and now it works. Yet when I add new permissions settings now when I remove the tabs notepad++ creates, I now get this error instead:

    Code:
    2011-03-07 13:22:34 [SEVERE] Could not pass event BLOCK_PLACED to Permissions
    while parsing a block mapping
     in "<reader>", line 61, column 9:
                default: true
                ^
    expected <block end>, but found Scalar
     in "<reader>", line 69, column 13:
                    'mywarp.warp.*'
     
  4. Offline

    D1ma

    im getting that:
    Code:
    [SEVERE] Could not pass event BLOCK_PLACED to Permissions
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroups(Control.java:656)
        at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:43)
        at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.java:227)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.ItemBlock.a(ItemBlock.java:107)
        at net.minecraft.server.ItemStack.a(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:160)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:482)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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)
    every time some one placing or destroying block
    and thats lags the server,
    how can i fix that?
     
  5. Offline

    Lord Chaos

    Not sure why people are recommending notepad++, it seems to add all kinds of formatting in the file when you write. :/
     
  6. Offline

    saturnine_nl

    did you replace the tabs with spaces ?
    and is there an - before 'mywarp.warp.*'
    aka - 'mywarp.warp.*'
     
  7. Offline

    BlueRain

    Would you explain in detail what you did and how you got it to work? I have MultiVerse plugin installed. I created world specific .yml file and placed them in Permissions directory, and I boot it up. I still have the privledges from my previous (default) world. It doesn't help when you want Creative world on one, and Survival on another.
     
  8. Offline

    Lord Chaos

    My bad...when I edited it I forgot the - before the permissions.

    Now its working :)
     
  9. Offline

    Darcion

    i have the same, i gave them differents groups bechause my players can only play in the freebuild world and the other in the towny world
     
  10. Offline

    Black_Jack

    Can someone explain me? With this plugin i can just don't use /op command. So, I can /deop me and use all /kick, /ban options? Or no? Or this works only for plugin commands? I'm fuck up my brain with whis. Help
     
  11. Offline

    Graloth

    If you are an OP on your server, then that is why it carries over, de-op yourself and it should work, at least it did for me
     
  12. Offline

    Runelynx

    How do I change someone's rank via chat command?
     
  13. Offline

    Jandalf

    try out yeditor, u cant do it with permissions
    --- merged: Mar 7, 2011 3:16 PM ---
    permissions work only for plugin commands, an op has all his features
    --- merged: Mar 7, 2011 3:18 PM ---
    dont know what u mean, for me its a great editor:) it only has color highlighting, which is really usefull
    --- merged: Mar 7, 2011 3:18 PM ---
    copy ur file to pastebin.com
    --- merged: Mar 7, 2011 3:21 PM ---
    please dont flame around, its ur opinion, but other user like me have an other one...
    --- merged: Mar 7, 2011 3:22 PM ---
    look at:
    --- merged: Mar 7, 2011 3:23 PM ---
    please describe ur problem better and copy ur file to pastebin.com
    --- merged: Mar 7, 2011 3:24 PM ---
    i think it does, unless ur using the essentials group manager or groupmanager
    --- merged: Mar 7, 2011 3:26 PM ---
    should be fixed in the new 2.5.3 version. it belongs in the permissions folder
    --- merged: Mar 7, 2011 3:28 PM ---
    u forgot 2spaces before 4days
    --- merged: Mar 7, 2011 3:29 PM ---
    copy ur permissions file to pastebin.com
    --- merged: Mar 7, 2011 3:30 PM ---
    i dont really know but permissions.* works well
    --- merged: Mar 7, 2011 3:30 PM ---
    yes
     
  14. Offline

    zeph

    You do this.
    EG if you have general plugging, you add -'general.kick' to the group permission.
     
  15. Offline

    Jandalf

    i think there is now why for controlling them-.- no plugin could do that
     
  16. Offline

    Black_Jack

    So, if i /deop me, I cant use ban, kick etc.
     
  17. Offline

    zeph

    You are overloading. MOD inherits DEFAULT, then ADMIN inherits MOD (and therefore DEFAULT) and then DEFAULT again. This could be why the permissions is breaking down.

    -'permissions.reload' i believe.
     
  18. Offline

    Jandalf

    it works well. permissions is only the basis. u need other plugins with a playerlist feature
    --- merged: Mar 7, 2011 3:35 PM ---
    yes but there are plugins that give u these commands
     
    Black_Jack likes this.

  19. Jandalf, maybe you can answer this, my question got lost in all the yml questions I belive.

    I have a best practice question.

    If I have understood correctly, it’s not a good idea to have multiple inheritance tiers.
    I have an yml where group 2 inherits group 1 and so on, 5 levels down.
    Can you please verify and explain why this is an issue?

    Is it better to only use one inheritance?
    If so do the permissions have to be pasted in the right alphabetical order?
    Or can I add new permissions at the end of each node?
    I have my AD node as an example.
    http://pastebin.com/ZkUkjSLP
     
  20. Offline

    Jandalf

    the general plugin hasnt this commands
    --- merged: Mar 7, 2011 3:41 PM ---
    yes i can, its too hard to read up 3pages:D
    the big problem is an overload of permissions, when someone gets a permission which he already has throgh a inheritance or an '*'. because of that a group who has '*' should inheritance anything and shouldnt has any other permissions, because it already has all. so u could use multiple inheritance but u should look that u get no double permissions. the order deosnt matter:D
     
  21. Offline

    zeph

  22. Offline

    TOAST7312

    Seems theres more then one person with this issue. Is there no one who knows how to fix it...?
     
  23. Offline

    Jandalf

    ok, what problem do u mean, i dont want to read the last 3 pages...
     
  24. Offline

    Jeppe

    I have this problem when i destory blocks:



    Code:
    17:01:32 [SEVERE] Could not pass event BLOCK_PLACED to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:656)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:227)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:107)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:160
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:482)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            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)
    >
    Can anyone help me with this error
     
  25. Offline

    Jandalf

    please copy ur perm file to pastebin.com
     
  26. Offline

    saturnine_nl

  27. Offline

    Jeppe

  28. just a last check!
    defoult node - 'iConomyChestShop.shop.use'
    builder - 'iConomyChestShop.shop.*'
    moderators - 'iConomyChestShop.*.*'

    would this cause any issues?
     
  29. Offline

    MRavn

    what do I need to type to load permissions without restarting the server?
     
  30. Offline

    zeph

    /permissions -reload all
     
  31. Offline

    MRavn

    thanks
     
Thread Status:
Not open for further replies.

Share This Page