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

    RytoEX

    Upon trying to run CraftBukkitUpToDate, it tells me that Permission needs updated even though I installed 2.5.1 from the zip linked in the OP. Wasn't sure if this had something to do with the Permissions version number being off or a problem with CraftBukkitUpToDate, but I thought I'd chime in here.
     
  3. Offline

    Jandalf

    i dont have this problem, maybe install it and see what CButD will say
     
  4. Offline

    RytoEX

    Once I copied the "new" version that CButD had downloaded, it stopped whining, but the version number still reads as 2.5, so I have no idea why it even triggered the action that it did in the first place. I might point the CButD author here to see if it's a quirk with its code.
     
  5. Offline

    Jandalf

    now CButD checks the date not any version number... and me too has 2.5 in the server log, it is nothing bad
     
  6. Offline

    Will-ko

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'BetterShop.user.*'
                - 'iConomy.list'
                - 'iConomy.rank'
                - 'iConomy.payment'
                - 'mobRider.command.goto'
                - 'mobRider.command.attack'
                - 'mobRider.command.go'
                - 'mobRider.command.stop'
                - 'mobRider.players'
                - 'mobRider.animals'
                - 'mobRider.monsters'
                - 'monstertamer.player.catch'
                - 'monstertamer.player.check'
                - 'monstertamer.player.befriend'
                - 'monstertamer.player.target'
                - 'monstertamer.player.release'
                - 'AutoRepair.warn'
                - 'AutoRepair.repair'
                - 'AutoRepair.info'
                - 'AutoRepair.access'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
     
  7. Offline

    Matt L

    How do i give a member on my server the ability to use the /pr reload command?
     
  8. Offline

    blackielife

    2011-03-03 13:33:17 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 101, column 1:

    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:592)
    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.composeNode(Composer.java:132)
    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.nijiko.permissions.Control.load(Control.java:147)
    at com.nijiko.permissions.Control.loadWorld(Control.java:111)
    at com.nijiko.permissions.Control.getGroups(Control.java:616)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:45)
    at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:272)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    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)

    what do i do to fix this?
     
  9. Offline

    cordeval

    I'm, running a LAN SMP in off-line mode.
    Are there circumstances where unknown or uninvited Default players would be on?
    - Except for the single "Player" allowed when MC's authorization server is down or maybe someone from outside the LAN stumbling into my server's DHCP IP address (renewed every 24 hours).
     
  10. Offline

    Jandalf

    yes when someone gets the ip address they could connect, but from where should they get it;)
     
  11. Offline

    TheYeti

    @godiceman Corrected config file: http://pastie.org/1629969 You were overloading inheritance extremely and had a few syntax fubars in there.
    --- merged: Mar 3, 2011 8:29 PM ---
    @Will-ko No idea on that one. It sounds like this might be a problem with how Towny is grabbing permissions. Or you have everyone with towny.admin permissions.
    --- merged: Mar 3, 2011 8:30 PM ---
    @blackielife That is saying you have a format error in your config file. Check your config in a yaml parser and correct the errors.
    --- merged: Mar 3, 2011 8:31 PM ---
    'permissions.reload' and 'permissions.info' I will be removing 'permissions.info' in 2.5.2 as it shouldn't have been still in there and I just forgot to take it out.
     
  12. Offline

    Lee Hayward

    This doesn't work for me. Big brother commands don't work anymore and default users can still build, even though I've set Build to false.. Going back to the old version..
     
  13. Offline

    woodzy

    all i did was replace a fake name with mine on the players section so id be admin and it didnt work
     
  14. Offline

    MizLiv

    I don't think you can use the -'/heal' and those other ones. You need to find the permission nodes.
     
  15. Offline

    cjc343

    There's more you need to remove, such as the fake permission nodes.

    Also, don't forget to properly rename your config.

    try this one after putting in your name (open)
    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
    plugin:
        permissions:
            system: default
            copies: 
    
    # 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:
    #
    #       - '*'
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-general.time'
    ##
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            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 Default 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:
        TheNo1Yeti:
            group: Admins
            permissions:
     
  16. Offline

    woodzy

    ok I DONT GET PERMISSONS AT ALL!!! how do u add players? and i keep getting HUGE errors across my consal and half my pluges give me errors in game when i try to use them. i used the past thing that guy made and just added my stuff
     
  17. Offline

    Buttchouda

    Any idea on why this isn't working?:
    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
    plugin:
        permissions:
            system: default
            copies: 
    
    # 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:
    #
    #       - '*'
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-general.time'
    ##
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            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 Default 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:
        Buttchouda:
            group: Admins
            permissions:
    It's saved as world.yml and my world is named...world.
     
  18. Offline

    DeathBanes

    Is this compatible with MultiVerse? I keep getting a message saying 'Permission 2.1 is not available, or has been found'
     
  19. Offline

    thefollower457

  20. Offline

    DeathBanes

  21. Offline

    thefollower457

    yes
    --- merged: Mar 4, 2011 12:12 AM ---
    never mind i fixed it
     
  22. Offline

    xXZoozieXx

    so i was try to get this to work for my server, and as i was testing it out, i found that i (xXzoozieXx) had no trouble being recognized as admin, but my friend mm3355 was being given no rights, not even default rights when he logged on, even though i set him as administrator. i probably screwed up the code beyond belief, but if any of you can remedy my situation please help[​IMG]
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - worldedit.navigation
        Mod:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'commandbook'
                - 'worldedit.navigation'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        xXZoozieXx:
            group: Admins
        Marmotman:
            group: Mod
        mm3355:
            group: Mod
    
    any help is appreciated
     
  23. Offline

    TheYeti

    Yes, it is compatible with MultiVerse.
     
  24. Offline

    cnrdweise

    Thank you so much! :) Used for my Server ;-)
     
  25. Offline

    DeathBanes


    Can you review my config, then?


    I have it named 'world.yml' Don't know why it's not working :/
     
  26. Offline

    TheYeti

  27. Offline

    TOAST7312


    You are amazing. Thank you.
     
  28. Offline

    Chugger

    Hello, I'm trying to get EpicZones to work, but it seems something is wrong. Could you please take a look at the two ways I've tried setting up permissions and tell me why it might not be working?


    sample:

    Code:
        PlayerE:
    
    
            group: vip
    
    
            permissions:
    
    
                - 'epiczones.Dinks.destroy'
    
    
                - 'epiczones.Dinks.build'
    
    
                - 'worldedit.navigation.jumpto'
    
    
                - 'general.help.deny'
    
    
                - 'epiczones.PHome.destroy.deny'
    
    
                - 'epiczones.PHome.build.deny'
    
    
                - 'epiczones.J1.destroy.deny'
    
    
                - 'epiczones.J1.build.deny'
    
    
                - 'epiczones.Store.destroy.deny'
    
    
                - 'epiczones.Store.build.deny'
    
    
                - 'epiczones.disco.destroy.deny'
    
    
                - 'epiczones.disco.build.deny'
    
    
                - 'epiczones.NTunnel.destroy.deny'
    
    
                - 'epiczones.NTunnel.build.deny'
    Or else in groups:


    Code:
        vip:
    
            default: false
    
            info:
    
                prefix:
    
                suffix:
    
                build: true
    
            inheritance:
    
                - Default
    
            permissions:
    
                - 'general.spawn'
    
                - 'mywarp.warp.basic.*'
    
                - 'mywarp.warp.soc.*'
    
                - 'NetherGate.*'
    
                - 'lwc.protect'
    
                - 'iConomy.payment'
    
                - 'WorldEdit.navigation.jumpto'
    
                - 'WorldEdit.navigation.unstuck'
    
                - 'DeathChest.use'
    
                - 'DeathChest.freeChest'
    
                - 'DeathCheat.freeSign'
    
                - 'DeathChest.allowQuickLoot'
    
                - '/ach'
    
                - '/stats'
    
                - 'mh.home'
    
                - 'epiczones.PHome.destroy.deny'
    
                - 'epiczones.PHome.build.deny'
    
                - 'epiczones.Dinks.destroy.deny'
    
                - 'epiczones.Dinks.build.deny'
    
                - 'epiczones.J1.destroy.deny'
    
                - 'epiczones.J1.build.deny'
    
                - 'epiczones.Store.destroy.deny'
    
                - 'epiczones.Store.build.deny'
    
                - 'epiczones.disco.destroy.deny'
    
                - 'epiczones.disco.build.deny'
    
                - 'epiczones.NTunnel.destroy.deny'
    
                - 'epiczones.NTunnel.build.deny' 
    Maybe I shouldn't have put the whole thing in there, but the way EZ works is that you need to add so many ... what do you call it? instruction layers? Does Permissions 2.5x support this? Thanks for any help :)
     
  29. Offline

    TheYeti

    @Chugger Don't put the extra lines in there like that. Also, I am not familiar with epiczones.
     
  30. Offline

    Chugger

    Extra lines? Where did I put extra lines? You mean, don't use individual permissions? sorry, I'm not understanding :(

    I didn't use both methods at the same time, though with PlayerE, I did add the allowable for dinks under their personal permissions.
     
  31. Offline

    Monkah

    Two errors.
    One when I break a block
    the other when I place one.

    Clogs up server pretty fast, fix please?
    --- merged: Mar 4, 2011 3:17 AM ---
    and chugger, I just tried using epiczones earlier today, it doesn't work.
    --- merged: Mar 4, 2011 3:23 AM ---
    Yes, I read the FAQ, but you never said what part of premissions I need to fix...?
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page