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

    kahlilnc

    http://pastiebin.com/?page=p&id=4dd58f986aa1c
    Can some fix my permissions please. Every time some one places a block they get an error, 'You don't have permissions to use this.' I have no clue why it does this. It happens to anything below a mod. They say it happens everytime they set blocks and eat something. It spams there entire chat. How do I fix this or can someone do it for me? Please this will mean so much to me.

    EDIT: Now they say everytime they talk it says. 'It has been 30 minutes you have lost a warning.' Ah I am freaking out I need some serious help.
     
  3. Offline

    icomeinpieces

    i'm writing a plugin that deals with blocks breaking but without permissions it allows specific blocks to be broken despite the false build permission for a group.

    noticed in the source a canGroupBuild() method however is there a easier way to check for build permissions without having to get the current player for the getGroup() method for the required group and world method signature.
    perhaps a permission node i can compare to that is derived from the build setting. thnx for any help ahead of time.
     
  4. Offline

    Revenger

    rcjrrjcr I noticed more in the documentation which is good can we get some info on how to move from v2 to v3's mysql system keeping all the groups and formatting etc.

    And examples how we can use the world inheritance stuff.
     
  5. Offline

    Jeyge

    Add craftbook.mech.cauldron to your permissions.
     
  6. Offline

    kahlilnc

    Will this fix everything?
     
  7. Offline

    Jeyge

    It should fix the permissions messages. I'm not sure about the rest but it will get you started.
     
    kahlilnc likes this.
  8. Offline

    kahlilnc

    I really hope so thank you so much.
     
  9. Offline

    Jeyge

    Report back if it doesn't fix everything and we will see what we need to do next.
     
  10. Offline

    kahlilnc

    I will tomorrow, no one is on server right now. Thank you for helping.
     
  11. Offline

    southern_storm

    How do I get peoples names to appear the proper colors (admin:red, mod:blue etc)
     
  12. Offline

    noron596

    I don't get it. When I open this up in notepad or any read-program, it shows me lots of squares and unknown symbols. Help?
     
  13. Offline

    Jeyge

    I think you would need a chat plugin for that.
    Open what up?
     
  14. Offline

    noron596

    The plugin's .jar file in notepad. Or word. Or WordPad.
     
  15. Offline

    Psycho Robot

    You shouldn't be opening the .jar in notepad. You should be opening the world.yml file. You can find that in plugins/permissions/world.yml
     
  16. Offline

    Deiza

    isnt working for me because it reconizes that there is a permissions plugin but nothing else, so no one can use commands please help
     
  17. Offline

    wavecom

    THX! i thought i would name the file bukkit.yml
     
  18. Offline

    Jeyge

    Are you getting any errors? Post your permissions.yml file along with your server.log.
     
  19. Offline

    rcjrrjcr

    In case you missed it, there's a has(String world, String playerName, String node) overload.

    I've written a perl script to convert a yaml config to an SQL dump, but it's not working well yet. World inheritance is explained in Storageconfig.yml options.

    EDIT: I also updated the dev build. Fixes more SQL errors.
     
  20. Offline

    efstajas

    Got a problem. Everything works when I start the server from scratch, but when I reload, nearly every Plugin stops working and the console is spammed with "Could not pass event ... to ...".

    Just a little example:
    Code:
    2011-05-19 21:15:59 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.Acrobot.iConomyChestShop.PermissionManager.hasPermissions(PermissionManager.java:16)
        at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        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:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-19 21:15:59 [SEVERE] Could not pass event PLAYER_INTERACT to ChairCraft
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.vildaberper.ChairCraft.ChairCraftPlayerListener.onPlayerInteract(ChairCraftPlayerListener.java:21)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        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:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-19 21:15:59 [SEVERE] Could not pass event PLAYER_INTERACT to WeatherControl
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
        at com.halvors.WeatherControl.WeatherControl.hasPermissions(WeatherControl.java:134)
        at com.halvors.WeatherControl.WeatherControlPlayerListener.onPlayerInteract(WeatherControlPlayerListener.java:49)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        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:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-19 21:15:59 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
    I have to restart the server completely then, which isn't nice if there are players on it... And also I can't install a plugin without restarting the server. This isn't nice! Please fix it! ;)
     
  21. Offline

    kaasinees

    same problem as the person above.
    i tried running the dev build, no errors, but no explanation of how to configure permissions.
     
  22. Offline

    thriondil

  23. Offline

    Kainzo

    Can't wait for 3.0
     
  24. Offline

    nitroxygen

    This error is lagging my server.
    This error started after i edited the permissions yml file, its saying there is no prefix or suffix for default but there is, all i edited was that i added -essentials.tpa under permissions
     
  25. Offline

    Jeyge

    You need a space after the -. It should be - essentials.tpa.

    Not everything likes a /reload which is why most plugins have a way to reload their config files without having to restart/reload. For all we know, those plugins didn't wait for Permissions to load before they tried to access the PermissionHandler or there was an error in the permissions.yml file.

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

    efstajas

    Okay, thanks for the answer. I was just wondering why this suddenly stopped working. So can the plugin devs change this behaviour?
     
  27. Offline

    Jeyge

    I'm not sure about that. I've just seen a lot of problems recently using /reload.
     
  28. Offline

    JKan

    hiya all im new to hosting but i have a crazy question and im sure im doing this right
    when permissions in YML parser, this shows up
    Code:
    ERROR:
    
    mapping values are not allowed here
      in "<unicode string>", line 162, column 20:
                     prefix: 'Admin'
                           ^
    im sure a colon aint rong so im so confused :/
    Code:
        Admins:
            default: false
            info:
                prefix: 'Admin'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    thats the whole thing just in case

    I just found that onli the the ones with admin sections are like this.

    Code:
        MYMINECRAFTNAME:
            group: Admins
                 prefix: 'Admin'
                 suffix:
            permissions:
    the error at the colons pop up again and for the top one ite prefix, suffix and build colons.
    nothing else... so confuzzled

    Edit: I took all the colons out and Posted it in Parser and it gave me no errors which was strange.

    and this is what i got in CMD when i run the BAT file.
    Code:
    03:06:02 [SEVERE] java.lang.Integer cannot be cast to java.lang.String initializ
    ing Permissions v2.7.3 (Is it up to date?)
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Stri
    ng
            at com.nijiko.permissions.Control.load(Control.java:215)
            at com.nijiko.permissions.Control.load(Control.java:130)
            at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permiss
    ions.java:174)
            at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:
    145)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:103)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    03:06:02 [INFO] BedHome version 0.1 - Copyright 2011 - Shannon Wynter (http://fr
    emnet.net) is enabled :)
    03:06:02 [INFO] ChairCraft 1.2.2 is enabled.
    03:06:02 [INFO] [Jail] Loaded 0 jail zones.
    03:06:02 [INFO] [Jail] Loaded 0 prisoners.
    03:06:02 [INFO] [Jail] Loaded 0 prisoners.
    03:06:02 [INFO] Lockette version 1.3.8 is being enabled!  Yay!  (Core version 1.
    0)
    03:06:02 [INFO] Lockette: Detected craftbukkit build [766] ok.
    03:06:02 [INFO] [Permissions] version [2.7.3] (Phoenix)  loaded
    03:06:02 [INFO] Lockette: Linked to Permissions plugin version 2.7.3
    03:06:02 [INFO] Lockette: Using ops file for admin permissions.
    03:06:02 [INFO] Lockette: Ready to protect your containers.
    03:06:02 [INFO] [SimpleAdmin] Permissions system detected!
    03:06:02 [INFO] [SimpleAdmin] Version 1.8.3 has been enabled!
    03:06:02 [INFO] Snowball fight version 0.4 is enabled!
    03:06:02 [INFO] Done (0.162s)! For help, type "help" or "?"
    
    says simple admin permission system detected but I cant use all commands which means theres stll something wrong with that darn colon!! grrrr

    im probably missing something major that all u experienced people would know...
    but can someone help me out please? and whats happening to the SEVERE thing :( makes me sad....
     
  29. Offline

    Maxis010

    @JKan
    Either remove the prefix and suffix tags from your users as you don't need to set the same prefix and suffix twice or put info: on a new line before them and indent them another 4 spaces
     
  30. Offline

    JKan

    @Maxis010 are u god? xD
    thanks xD

    but im still getting the SEVERE thing in CMD when i run the server do u know what that is?
    sorry for asking so much...
     
  31. Offline

    Jeyge

    Not without seeing your whole permissions.yml file but most likely, you have a user that is all numbers. Enclose the numbers in quotes and it should go away.
     
Thread Status:
Not open for further replies.

Share This Page