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

    ITech

    Sorry, but i really need help with my problem, so pleases answer me !
    @Itssnowing
     
    jeddeliso likes this.
  3. Offline

    jeddeliso

    @rcjrrjcr
    is the limit for amount of groups 3?
     
  4. Offline

    ScorchRaserik

    Okay, for some reason Permissions 2.6 isn't working with one of my MultiVerse worlds. I have MainWorld.yml set to default, TempWorld.yml is a word-for-word copy of MainWorld.yml (except for system:default. I know this is unnecessary, but it's been this way since 2.5.4, just because I thought it would help permissions in my second world. And hey, it works, so why fix what ain't broke?), Seed404World.yml is the new barebones format:

    plugin:
    permissions:
    copies: MainWorld

    and Nether.yml and WarWorld.yml are the same as Seed404World.yml. Every single world works just fine except for WarWorld. Everytime I restart or /reload my server, WarWorld.yml automatically edits itself back to:

    plugin:
    permissions:
    copies: ' '

    I've even gone as far as to stop my server, delete WarWorld.yml, copy Nether.yml, and rename the copy to WarWorld.yml. It still auto-edits WarWorld.yml to a blank copy, so none of my users have permissions in that world alone.
     
  5. Offline

    jeddeliso

    hey iTech, i believe we have the same problem, i did tests, so far, you can only use 3 groups that permissions actually notices, go over that it starts showing error logs on my console
     
  6. Offline

    Ben Quincy

    I am very pissed. I restarted my server because its been running all night and i like fresh logs so when i turned it back on my permissions werent working... It knows permissions is there but everyone is deafault even if i put my name as admins... I even reinstalled the JAR AND YML !!!!! WHY WONT IT WORK>!!!
     
  7. Offline

    Sammy

    So nodes are the ID of the command, for example "myplugin.list" ?
    thanks for the help =)
     
    jeddeliso likes this.
  8. Offline

    rcjrrjcr

    ID of the command? I'm sorry, but I don't understand you. Did you mean the function's parameters? An example would be adding a permission node "myplugin.list" to a user "JohnDoe" in world "World" via calling
    Code:
    addUserPermission("World","JohnDoe","myplugin.list")
     
  9. Offline

    Sammy

    @rcjrrjcr That's it, I didn't knew how to call them ^^
    Thanks for the help
    cheers
     
  10. Offline

    jeddeliso

    try this
    1. copy your world and your Permissions file (WarWorld.yml) [DONT DELETE IT] to another directory eg. C:\Desktop/bukkitserver/WarWorld to C:\Desktop/WarWorld
    2. turn on server, delete WarWorld ingame, turn off server, then turn it on again, (not reloading).
    3. paste back you WarWorld, import it ingame, try going to the world and try a command, if not working continue
    4. turn off server, delete the permissions file and generate a new one. then edit from there, (from my experience, you can only have 3 groups, maybe thats it?)

    hey @rcjrrjcr
    , sorry if im spamming you, but can you only have 3 groups at a time for permissions?

    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

    I haven't found any kind of limitation like that in the code.
     
  12. Offline

    jeddeliso

    really?, i've been trying to put more than 3 groups in my server for about 4 days now, tried all kinds of stuff, even using notepadd++ , but it never worked for me! D:, why does it have to be hard to set up permissions.
     
  13. Offline

    rcjrrjcr

    Does having only 3 groups work? Maybe the 4th group has a YAML formatting error.Notepad++ still uses tabs instead of 4 spaces for indentation, even when having the language as YAML. It's a bug, I think.
     
  14. Offline

    jeddeliso

    i double checked notepad++ preferences at the start, ticked the "change tabs to 4 spaces", then i put the default preference to YAML, it still didn't allow me to get over 3, i am officially stuck with 3. too bad, i was trying to put in a new ranking system that includes professions such as swordsman and superheros.! D;
     
  15. Offline

    lucasnrk

    Code:
    19:44:09 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:625)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.java:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
            at net.minecraft.server.ItemSign.a(ItemSign.java:57)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    19:44:13 [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:64)
            at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:392)
            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:157)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:45)
            at net.minecraft.server.EntityPlayer.f_(EntityPlayer.java:80)
            at net.minecraft.server.World.a(World.java:983)
            at net.minecraft.server.WorldServer.a(WorldServer.java:52)
            at net.minecraft.server.World.f(World.java:965)
            at net.minecraft.server.World.e(World.java:942)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:365)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    :(
     
  16. Offline

    jeddeliso

    Were you OP? and if not, are you in the spawn area? AND ARE YOU SURE YOU HAVE BUILD SET TO TRUE?
    if you are not OP, tell my your plugins
     
  17. Offline

    rcjrrjcr

    Hmm. Can you post your permissions config file? The previous one you posted was a little messed up with everything on one line.
     
  18. Offline

    super1395

    the config file format changes for me, its all in lines now, and it also wont let me add anything new, if i do and save it then restart the server the thing i added simply is not in the text files
     
  19. Offline

    jeddeliso

    oh, i can't right now, i left my laptop @ my friends house, will WILL POST MY LATEST VERSION OF PERMISSIONS ASAP, WITH YOU NAME TAGGED INTO IT, PROBABLY TOMORROW! eta. 7 hours.

    btw, i double checked it using notepad, notepad++, and online yaml paser. it seems to only allow it with 3.
    there were no extra enters or spaces, it just says this right in the middle of the error file

    Code:
    [SEVERE] Could not load plugins\Permissions.jar in plugins: null org.bukkit.plugin.InvalidPluginException     at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)     at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)     at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375) Caused by: java.lang.reflect.InvocationTargetException     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)     at java.lang.reflect.Constructor.newInstance(Unknown Source)     at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:101)     ... 8 more Caused by: while parsing a block collection  in "<reader>", line 247, column 13:                 - '-mobrider.player'                 ^ expected <block end>, but found Scalar  in "<reader>", line 249, column 16:                 - 'essentials.balance'                    ^      at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)     at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)     at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)     at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)     at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)     at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)     at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)     at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)     at org.bukkit.util.config.Configuration.load(Configuration.java:73)     at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:126)     ... 13 more
    
     
  20. Offline

    rcjrrjcr

    Are you adding it when the server is running? In v2.6, plugin-added permissions are saved in onDisable(). That will overwrite any changes you made between starting and stopping the server.

    I'm already reconstructing it with regexes. My copy might not be accurate so just post it anyway.

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

    jeddeliso

    i made a few changes on the latest version of my permssions, like moving the permission from 1 group to another! give it a shot anyways, and i'll still post mine, its a real promissing idea of mine, professions like SuperHero uses Wings and Sprint plugins! :D, and the rest hooks into mcmmo, which is awesome too! :D
     
  22. Offline

    Lukasdk

    Hey guys, i need help. My problem is that I have no permissions with the latest version. I updated Bukkit to the newest version and all my plugins, including Premissions. But now I have no permissions, i don't know why because I didn't changed anything. Please, I need help!
     
  23. Offline

    Ulrar

    Mh, I have a question.
    I have a default group, where most of players are.
    I have granted to this group all permissions -'*' and then I try to delete the unwanted one, like the teleportation and things like that.
    But when I try to remove something with a wildcard, the line is just ignored.
    Like - '-worldedit.*' juste don't work, players can use worldedit.

    Is there a way to make it work ?
    I don't want to specify all permissions by hand, I have lot of plugin and the file would be enormous. And I'd take lots of time, remove permission is just way faster.

    But the problem is just with wildcard, eg if I do - '-wormhole.go' players can't use /wxgo so it works.
    Will wildcard will be supported for remove permission soon ?

    Thanks
     
  24. Offline

    jeddeliso

    it didn't detect the latest config? did you rename the RENAME-ME.yml? if not you might have to start from scratch from the zip file
     
  25. Offline

    rcjrrjcr

    @jeddeliso Found your problem. The stack trace complains about these two lines: "-mobrider.player" and "essentials.balance" . Looking at the YAML file, those lines are fine, but the lines following the are not:
    Code:
    - '-mobrider.player'
    - 'essentials.afk
    - 'essentials.balance'
    
    Note the missing single quote.
     
  26. Offline

    OkinKun

    Is there a reason why my users (who are added as Builders or Adv and have "build: true" for their group) are telling me that when they break/place blocks, the server is spamming their chat with something like "You do not have permission to do that."?

    Is there anything wrong with my permission file?
    Code:
    groups:
        Default:
            default: true
            permissions:
            - commandbook.motd
            - commandbook.msg
            - commandbook.rules
            - commandbook.who
            - SpawnControl.spawn.use
            inheritance:
            - Default
            info:
                prefix: '&7'
                suffix: '&f'
                build: false
        Mod:
            default: false
            permissions:
            - bb.admin.info
            - commandbook.bans.isbanned
            - commandbook.give.other
            - commandbook.kick
            - commandbook.slap.other
            - commandbook.spawnmob
            - commandbook.teleport.other
            - commandbook.time
            - commandbook.whois.other
            - worldedit.analysis.*
            - worldedit.butcher
            - worldedit.extinguish
            - worldedit.fixlava
            - worldedit.fixwater
            - worldedit.generation.*
            - worldedit.history.*
            - worldedit.navigation.*
            - worldedit.region.*
            - worldedit.selection.*
            - worldedit.superpickaxe
            - worldedit.tool.*
            - worldedit.wand
            inheritance:
            - Adv
            info:
                prefix: '&d'
                suffix: '&f'
                build: true
        Builder:
            default: false
            permissions:
            - commandbook.kit.list
            - commandbook.say.me
            - SpawnControl.home.basic
            - SpawnControl.sethome.basic
            inheritance:
            - Default
            info:
                prefix: '&3'
                suffix: '&f'
                build: true
        Adv:
            default: false
            permissions:
            - worldguard.god
            - commandbook.give
            - commandbook.give.stacks
            - commandbook.kit.tools
            - commandbook.teleport
            inheritance:
            - Builder
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
        Admin:
            default: false
            permissions:
            - '*'
            inheritance:
            - Mod
            info:
                prefix: '&a'
                suffix: '&f'
                build: true
    For some reason, after updating to 2.6, the plugin re-saved my permission file, removed all the quotes and comments, and re-ordered my file. (WTF? I spent a LOT of time fixing my file during 2.5.5 a couple days ago, then I go and update, and it screws up my file like this? But yet command permissions is STILL working fine, so I guess it's supposed to look like this now?)

    BTW people, don't edit it in Notepad, it will probably look like everything is on 1 line. Use something like Notepad++ or a text editor that abides by proper standards.
     
  27. Offline

    Lukasdk

    the config file is named like the world. I took my old one. I also tried to take the one from the zip file but it's not working.
     
  28. Offline

    rcjrrjcr

    Could you put your code into code blocks?
     
  29. Offline

    jeddeliso

    yea, thats what i mean, i got all those problems sorted out already. but it still complains with it. i'll post my latest one in about 6 hours time, see you then, i'll sleep
     
  30. Offline

    Lukasdk

    Ok sorry, got the problem. I had to edit the file with Notepad++. Thanks :D
     
  31. Offline

    lucasnrk

    Yes, no, yes.

    Plugins:
    - Permissions 2.6
    - Bigbrother
    - Craftbook
    - Epicgate
    - Essentials
    - iChat
    - iConomy
    - iConomyChestShop
    - McMMO
    - LWC
    - MyHome
    - MyWarp
    - NoCheat
    - VirtualChest
    - Whitelist
    - WorldEdit and Guard

    CB Build 670
     
Thread Status:
Not open for further replies.

Share This Page