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

    LynxofCP

    While I haven't been able to find issues with some of the other problems people have been facing, I did find this out after digging through the permissions source: The error message
    Code:
    Invalid config file found and converted to proper name/format.
    seems to be normal (I think it's a missing else statement)

    I mention this because I didn't see it in the previous 5 pages. I'm not even sure what I did to fix my permissions file as I now have the rights I expected...
     
  3. Offline

    Reddragon

    I've read most of the posts from the past few days and I'm running into a problem where everything loads correctly (or so it seems) but inside minecraft i have no options to do anything. I've enabled admin on my account, went through various tutorials on how to set it up, checked the ymal checker thing website and nothing seems to be working.

    I'm not an expert but you should post your config file, there's likely issues with the code in these lines. Did you use tab?

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

    Nieksas

    When someone connects i get this error :confused:

    Code:
    2011-04-04 13:56:52 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.bukkit.migration.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:70)
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.bukkit.migration.PermissionsResolverManager.inGroup(PermissionsResolverManager.java:106)
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlugin.inGroup(WorldGuardPlugin.java:219)
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener.onPlayerJoin(WorldGuardPlayerListener.java:313)
    2011-04-04 13:56:52 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:169)
    2011-04-04 13:56:52 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2011-04-04 13:56:52 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-04 13:56:52 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.bukkit.migration.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:70)
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.bukkit.migration.PermissionsResolverManager.inGroup(PermissionsResolverManager.java:106)
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlugin.inGroup(WorldGuardPlugin.java:219)
    2011-04-04 13:56:52 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener.onPlayerJoin(WorldGuardPlayerListener.java:317)
    2011-04-04 13:56:52 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:169)
    2011-04-04 13:56:52 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2011-04-04 13:56:52 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-04 13:56:52 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
     
  5. Offline

    Celtic Minstrel

    @Nieksas - That's a bug in WorldGuard, I'm afraid; I've noticed it too. Report it in the WorldGuard thread.
     
  6. Offline

    Nieksas

    but it gives error with permissions to ...
     
  7. Offline

    Itssnowing

    I know what it is, but you'll need to post your Config for me to fix it. Some of your nodes aren't indented properly :p
     
  8. Offline

    virtualism

    Just +1ing this. I don't expect a magic fix in 20 minutes, though it would be neat to see how many others have it.
     
  9. Offline

    Itssnowing

    I'm just going to make sure: The config file has been renamed, and is in the permissions folder?
     
  10. Offline

    virtualism

    yyyep. [cake]
     
  11. Offline

    Reddragon

    Yup. My world is just called 'world', so the config is named world.yml
    I took myself off the op list, and i still cant do commands. I get errors, it just says "tried command: i 46" or whatnot, and i get an error when i break a block. Possibly an error in the config?
     
  12. Offline

    Itssnowing

    Do you get any errors on startup?
     
  13. Offline

    virtualism

    If i recall correctly, "tried command" means that the command doesn't actually exist. I can't check that on my own server at the moment, but see if /gibberish gives that same message? It should specifically state you didn't have the permission/were not authorized to use that command.
     
  14. Offline

    Reddragon

    No errors on startup.

    Maybe its working, do commands like /i and /setspawn come from other plugins?

    No commands work atm. Not /give, or /help, nothing.
     
  15. Offline

    virtualism

    Think there are several plugins that cater for those, like Essentials. Maybe add 'essentials.setspawn' as a permission and see if that works (presuming you have Essentials)
     
  16. Offline

    Reddragon

    I went from a fresh server, so i just now added essentials. Commands don't work unless i add myself to the op list, but i read you shouldn't do that. So now commands work, but i cant place blocks or break blocks (Im guessing thats essentials though).
     
  17. Offline

    virtualism

    No, you're right, you shouldn't add yourself as op.

    Could you post your world.yml file (preferably on pastebin)?
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
    The only think i can thing of that would not let you build is 'build: false'.
    Which commands don't work?
     
  18. Offline

    Reddragon

  19. Offline

    virtualism

    Yep, that's what i needed.
    It all looks good, formatting is in order - so i have no idea why it isn't working. Bar maybe a typo in the name or putting it in the wrong location, but I doubt that. In which case it would appear you have the same issue as I do.

    One note though: You added the prefix Owner to both the user and the group that user was in (redundant), and prefixes don't actually do anything on their own. You need a plugin like ichat to use them.

    What version of craftbukkit are you running?
     
  20. Offline

    Reddragon

    I should be running on 617. And yeah i saw that owner thing, fixed that :p
    Honestly, everything I'm doing here is 100% new to me, so I'm trying my hardest to comprehend it all. I assume names aren't case sensitive, but ill likely give that a shot too. Other than that, maybe it's just a bug that we have to wait to get ironed out in a later version?

    Edit: I do have iChat, so prefixes should show up, but they don't either.
     
  21. Code:
    plugin:
        permissions:
            system: default
            copies:
    
    
    groups:
        Guest:
            default: true
            info:
                prefix: '&7[Guest]'
                suffix:
                build: false
            inheritance: 
            permissions:
                - 'general.spawn'
        Builder:
            default: false
            info:
                prefix: '&6[Builder]'
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                    - 'general.time'
                    - 'general.teleport'
                    - 'general.teleport.here'
                    - 'general.player-info'
        Admin:
            default: false
            info:
                prefix: '&1[Admin]'
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
                - 'general.give'
        Boss:
            default: false
            info:
                prefix: '&4[Owner]'
                suffix:
                build: true
            inheritance:
            permissions:
                    - '*'
        Schnuffi:
            default: false
            info:
                prefix: '&d[Schnuffi]'
                suffix:
                build: true
            inheritance:
                   - Boss
            permissions:
                   - '*'
    
    
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        Alphagun:
            group: Boss
            permissions:
        RidaWoop:
            group: Schnuffi
            permissions:
                    - '*'
        Philippshome:
            group: Admin
            permissions:
        Meteor_Phoenix:
            group: Builder
            permissions:
        lulu297:
            group: Builder
            permissions:
        darkgrave:
            group: Admins
            permissions:
        darkgrave:
            group: Admins
            permissions:
        darkgrave:
            group: Admins
            permissions:
        darkgrave:
            group: Admins
            permissions:
        darkgrave:
            group: Admins
            permissions:
        darkgrave:
            group: Admins
            permissions:

    I have all permissions but group Schnuffi and Admin have nothing =/ help me plz
     
  22. Offline

    virtualism

    Names *might* be case sensitive (I don't know, and can't test it right now), but somehow I doubt that's going to fix it for you. The problem with this bug is that so far I've only heard 3 people mention it and the people most knowledgeable about the plugin don't seem to know either.


    Well, yeah. The permissions plugin appears to be just flat out ignoring the x.yml file.
     
  23. Offline

    GeneralBoo92

    I don't know if it fixes it, but if you have a group have '*' for permissions youre not supposed to have it inherite any other groups or give them any other permissions, the "*' already means that they have all command permissions.
     
  24. Offline

    Reddragon

    Oh well, hopefully a fix will show up soon. I appreciate the help :D
     
  25. Offline

    Itssnowing

    What's with all the Darkgraves? o.o
    Also, a lot of your lines have too many spaces, notably the permission nodes. Each permission node needs 12 spaces, while as some of yours have 16.
     
  26. Offline

    RyenBlack

    I got a little problem I'm not sure if you can help me.

    Here is the default group on my permissions file:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'commandbook.spawn'
    the problem is people can't seem to be able to use the /spawn command, even though they have the permission for it on file in game they get the "you don't have permission" message.. :S
    In fact I can't seem to be able to give permission for anyone to use any command at all they always get the no permission message.
    The only way to get around it is give the '*' permission

    I have checked the permission text on the plugins I use and they're correct.. am I doing something wrong here?
     
  27. Offline

    Mistrae

    Hello,

    I am working on that file since 2 days , and i dont know why it dont work... all players are in default group and cant build or something.

    Plz someone can help me ?

    http://pastebin.com/4zWxXRFn
     
  28. Offline

    Itssnowing

    @Mistrae You need to turn "Build:" To true, right now it's on false.
     
  29. Offline

    Krisztián

    I'm having a bit of a problem. Every time someone breaks a block or builds with one, the console gives me an error message saying that the event handler couldn't communicate the action to Permissions. I'm running the newest CraftBukkit and the newest Permissions.
     
  30. Offline

    Mistrae

    But i want to default player cant build, but only members moderators and admins.
     
  31. Offline

    Pjam

    21:44:05 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.Permission
    Handler.inGroup(Ljava/lang/String;Ljava/lang/String;)Z
    21:44:05 [SEVERE] at com.nidefawl.Stats.Permissions.NijiPermissionsResolve
    r.inGroup(NijiPermissionsResolver.java:74)
    21:44:05 [SEVERE] at com.nidefawl.Achievements.AchConditionals.meets(AchCo
    nditionals.java:51)
    21:44:05 [SEVERE] at com.nidefawl.Achievements.Achievements.checkAchieveme
    nts(Achievements.java:289)
    21:44:05 [SEVERE] at com.nidefawl.Achievements.AchievementsCheckerTask.run
    (AchievementsCheckerTask.java:11)
    21:44:05 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainT
    hreadHeartbeat(CraftScheduler.java:122)
    21:44:05 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:356)
    21:44:05 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:283)
    21:44:05 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:375)
    21:44:05 [SEVERE] Unexpected exception
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.inGroup(Lj
    ava/lang/String;Ljava/lang/String;)Z
    at com.nidefawl.Stats.Permissions.NijiPermissionsResolver.inGroup(NijiPe
    rmissionsResolver.java:74)
    at com.nidefawl.Achievements.AchConditionals.meets(AchConditionals.java:
    51)
    at com.nidefawl.Achievements.Achievements.checkAchievements(Achievements
    .java:289)
    at com.nidefawl.Achievements.AchievementsCheckerTask.run(AchievementsChe
    ckerTask.java:11)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:122)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    21:44:40 [SEVERE] java.net.SocketTimeoutException: Read timed out
    21:44:40 [SEVERE] at java.net.SocketInputStream.socketRead0(Native Method)

    21:44:40 [SEVERE] at java.net.SocketInputStream.read(Unknown Source)
    21:44:40 [SEVERE] at java.net.SocketInputStream.read(Unknown Source)
    21:44:40 [SEVERE] at java.io.FilterInputStream.read(Unknown Source)
    21:44:40 [SEVERE] at net.minecraft.server.Packet.b(Packet.java:73)
    21:44:40 [SEVERE] at net.minecraft.server.NetworkManager.f(NetworkManager.
    java:130)
    21:44:40 [SEVERE] at net.minecraft.server.NetworkManager.c(NetworkManager.
    java:229)
    21:44:40 [SEVERE] at net.minecraft.server.NetworkReaderThread.run(SourceFi
    le:68)



    _________

    When I get rid of permissionsn it works fine..

    What happens is that a few severe errors come up.. then the world gets laggy, I can't type in chat etc.

    Then about 20 secs later it says timed out connection lost.

    Please help because I kind of need permissions to work.
     
Thread Status:
Not open for further replies.

Share This Page