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

    jdrez

    On CB 440 and Permissions v2.4, I'm getting this error:

     
  3. Offline

    DetKimble911

    Nice job on this, I'll keep my code off the site.
     
  4. Offline

    ParkerReno

    Is there any way we could get an ingame group modification command? Essentials had one but they abandoned it
     
  5. Offline

    wbrimley

    Hey everyone. So, I'm having some trouble tryin' to make that work properly.

    First of all, here's my "world.yml" file:
    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: '&a'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.signs.protection.create'
                - 'essentials.signs.protection.use'
                - 'essentials.signs.free.use'
                - 'essentials.signs.disposal.use'
                - 'essentials.getpos'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.helpop'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.kit'
                - 'essentials.kit.iniciante'
        Admins:
            default: false
            info:
                prefix: '&6'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        31337:
            group: Admins
            permissions:
    Well there's nothing wrong with it (I guess).

    Although it's valid, I'm still not a member of the "Admins" group:
    [​IMG]

    It's an unauthenticated (online-mode=false) server.


    What in the galaxy am I doing wrong? Does it even work on unauthenticated servers?
     
  6. Offline

    TheYeti

    I don't know but if it doesn't I will take a look at possibly making it so that it does.
    --- merged: Feb 28, 2011 1:37 AM ---
    Add a pull request to the github with the stuff that you had did. Will obviously give tons of credit where it is due. And it sounds like you had made some changes that should definitely see their way into Permissions.
     
  7. Offline

    Bawb

    Code:
    2011-02-27 20:39:14 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'permissions' in plugin Permissions v2.4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:176)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.nijiko.permissions.Control.permission(Control.java:286)
        at com.nijikokun.bukkit.Permissions.Permissions.onCommand(Permissions.java:164)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
        ... 6 more
    
    Hi Yeti, I keep getting this error when trying to use permissions. My CB build is the latest recommended one (I think 440?)
    Now, I noticed in your github page it was listed as a bug and is marked "fixed", with the notation "Fixed in 2.5". My question is, is 2.5 available yet? If so, where? Am I just being remarkably obtuse on being unable to locate 2.5?
     
  8. Offline

    Joe_Young

    typing "/mod" results in a error message you might want to get rid of.
     
  9. Offline

    TheYeti

    @Joe_Young Nothing in my plugin calls or has a command for /mod so I don't know where you are getting that.

    @Bawb I want to get a couple more things fixed in it before I release the next version
     
  10. Offline

    Ian Boudreaux

    When i do /permissions it says internal error has occured, and same thing happens when i try to run multiverse, wtf is going on?

    # 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.
    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:
    - 'general.spawn'
    - 'iConomy.payment'
    - 'iConomy.list'
    - 'iConomy.rank'
    Operator:
    default: false
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    - Default
    permissions:
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.player-info'
    Admin:
    default: false
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    -Default
    -Moderator
    permissions:
    - 'worldedit.*'
    - 'worldguard.*'
    ##
    # Solcrum has control over all commands.
    ##
    users:
    Solcrum:
    group: Admin
    permissions:
    Pollum:
    group: Operator
    permissions:
    Talksincups:
    group: Operator
    permissions:
    madafett:
    group: Operator
    permissions:
     
  11. Offline

    Zenexer

    @TheYeti Just for clarification: Essentials does continue provide compatibility with your Permissions, and it does test against your Permissions; however, it no longer provides technical support for Permissions. The overhead was just too high, and we have our own permissions system to support. Hopefully this clears up any confusion. Keep up the great work!

    (Previously, #essentials on EsperNet provided technical support for Nijikokun's Permissions.)
     
  12. Offline

    highvoltage56

    Does anyone see anything wrong with this world.yml file?

    it wont work for me...

     
  13. Offline

    Johannes

    YAML works based on formatting. That means how indented text is (with spaces, NOT tabs) actually defines how the different elements relate to one another.

    If what you pasted there is what you have in your file, then it won't work because all the indentations are gone, which completely screws up the hierarchies it needs to work.

    Please look at the default yml file that comes with the download as an example, and make sure that you don't use tabs, but spaces to indent any lines. If you are using a text editor that replaces spaces with tabs be sure to turn that off or use another one.
     
  14. Offline

    highvoltage56

    In my file it still has the spaces it only screwed up when i pasted it, I'm just wondering if there is anything wrong with the info i put in. every time i try a command it says: an internal error has occurred.
     
  15. Offline

    ShadowDrakken

    can you pastebin it here so we can see it without losing the formatting? it could be a formatting error
     
  16. Offline

    DarkM

    Alright I'm using Craftbukkit 440 (Recommended one), Permissions 2.4, and Essentials 2.0.

    I have no troubles with commands as I'm admin and for permissions I just have an asterisk. But the other groups inheriting Default such as DonDia, DonGold, and DonIron are unable to use any commands.

    Here is my config.yml:
    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: '&f'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.help'
                - 'essentials.motd'
                - 'essentials.list'
                - 'essentials.me'
                - 'essentials.rules'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.helpop'
                - 'essentials.msg'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'tombstone.use'
                - 'SpawnControl.home.basic'
                - 'SpawnControl.spawn.use'
                - 'lwc.protect'
        Admin:
            default: false
            info:
                prefix: '&c'
                suffix: ''
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
        Moderator:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.kick'
                - 'essentials.time'
        DonIron:
            default: false
            info:
                prefix: '&7'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.tpahere'
                - 'tombstone.lwc'
                - 'tombstone.freechest'
        DonGold:
            default: false
            info:
                prefix: '&e'
                suffix: ''
                build: true
            inheritance:
                - DonIron
            permissions:
                - 'essentials.tpa'
                - 'tombstone.large'
                - 'tombstone.sign'
        DonDia:
            default: false
            info:
                prefix: '&b'
                suffix: ''
                build: true
            inheritance:
                - DonGold
            permissions:
                - 'essentials.time'
                - 'magiccarpet.mc'
                - 'tombstone.freesign'
                - 'tombstone.quickloot'
     
    ##
    # 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:
        DarkM:
            group: Admin
            permissions:
        Bates:
            group: Admin
            permissions:
        Vigoroth:
            group: Moderator
            permissions:
        SLVRFox:
            group: Default
            permissions:
        BackwardsCap:
            group: Default
            permissions:
     
  17. Offline

    ShadowDrakken

    Permissions overloading problem... don't inherit anything on Admin since Admin has *
    And make sure on any others that you don't duplicate something they already get through inheritance
     
  18. Offline

    highvoltage56

    Here is the file, i put it into a text document so the formatting would still be there.
     

    Attached Files:

  19. Offline

    ShadowDrakken

    Found two errors... ones that prove how much YAML sucks, lol :)

    You have -'*' for Admin instead of - '*' (space between - and ' )
    Jackst is in group "moderator" instead of "Moderator"
     
  20. Offline

    Johannes

    One thing I saw was that the user Jackst is assigned to the group 'moderator' however capitalization matters and you only have a group called 'Moderator'

    Other than that I couldn't see any mistake.

    =Edit= ShadowDrakken caught it before me and the lack of the space. hat's off ;)
     
  21. Offline

    highvoltage56


    TY so much that file has been giving me so much trouble.
     
  22. Offline

    turboderp

    My world.yml file : http://pastebin.com/R3YR6CnN

    I'm using Permissions 2.4 and CB440.
     
  23. Offline

    DarkM

    Fixed the admin inheritance, still no other groups can do anything.
     
  24. Offline

    jdrez

    I tried using the default yml file (renamed to my world name, of course), and I still get this error! Is anyone else having this problem?
     
  25. Offline

    averad

    When I run /permisions -reload all in game I receive the folling error

    Code:
    2011-02-28 00:02:25 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'permissions' in plugin Permissions v2.4
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:176)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:638)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:601)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:595)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
            at com.nijiko.permissions.Control.load(Control.java:224)
            at com.nijiko.permissions.Control.forceLoadWorld(Control.java:118)
            at com.nijiko.permissions.Control.reload(Control.java:77)
            at com.nijikokun.bukkit.Permissions.Permissions.onCommand(Permissions.java:177)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
            ... 12 more
    
    CB 440 Permissions 2.4

    world.yml
    http://pastebin.com/H7Lr6DC7
     
  26. Offline

    tension69

    @everad

    Build 464 with Permissions 2.4:-

    Code:
    >reload permissions
    06:57:46 [INFO] [iChat] iChat Disabled
    06:57:46 [INFO] [Permissions] version [2.4] (Phoenix) disabled successfully.
    06:57:46 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    06:57:46 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugi
    n for permissions.
    06:57:46 [INFO] [Permissions] version [1.0] (Phoenix) disabled successfully.
    06:57:46 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    06:57:46 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugi
    n for permissions.
    06:57:46 [INFO] WorldGuard 4.0-alpha1 disabled.
    06:57:46 [INFO] [WormholeXTreme]WormholeDB shutdown successfull.
    06:57:46 [INFO] [WormholeXTreme][v0.75]Successfully shutdown.
    06:57:46 [INFO] [Permissions] version [2.4] (Phoenix) was Initialized.
    06:57:46 [INFO] [Permissions] version [2.4] (Phoenix) was Initialized.
    06:57:46 [INFO] WorldGuard loaded.
    06:57:46 [INFO] [General] version [2.1.2] (TheBeginningOfTheEnd) loaded
    06:57:46 [INFO] [Permissions] version [1.0] (Phoenix)  loaded
    06:57:46 [INFO] [iChat] Using Permissions 2.4 for permissions
    06:57:46 [INFO] iChat (v2.04) enabled
    06:57:47 [INFO] [MYHOME]: 6 homes loaded
    06:57:47 [INFO] [MYHOME] Permissions enabled.
    06:57:47 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    06:57:47 [INFO] MyHome 1.9.2 enabled
    06:57:47 [INFO] [Permissions] version [2.4] (Phoenix)  loaded
    06:57:47 [INFO] WorldEdit 4.0-beta7 enabled.
    06:57:47 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
     for permissions.
    06:57:47 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugi
    n for permissions.
    06:57:47 [INFO] WorldGuard: Blacklist loaded.
    06:57:47 [INFO] WorldGuard: Single session is enforced.
    06:57:47 [INFO] WorldGuard: TNT ignition is PERMITTED.
    06:57:47 [INFO] WorldGuard: Lighters are PERMITTED.
    06:57:47 [INFO] WorldGuard: Lava fire is blocked.
    06:57:47 [INFO] WorldGuard: All fire spread is disabled.
    06:57:47 [INFO] WorldGuard 4.0-alpha1 enabled.
    06:57:47 [INFO] [WormholeXTreme][v0.75][By Lologarithm & alron]Load Beginning.
    06:57:47 [WARNING] [WormholeXTreme]Failed to load iConomy Plugin - there will be
     no iConomy integration.
    06:57:47 [INFO] [WormholeXTreme]0 Wormholes loaded from WormholeDB.
    06:57:47 [INFO] [WormholeXTreme][v0.75]Load Completed.
    06:57:47 [INFO] Reload complete.
    >
    I'd suggest using permissions 2.0/2.1 with that build, as you see I have no problems.
     
  27. Offline

    strupan

  28. Offline

    averad


    440 is the recommended build
     
  29. Offline

    tension69

    When I was on that build I used Permissions 2.0 with no problems;)

    Try 'permissions reload' in the console (no quotes)
     
  30. Offline

    averad

  31. Offline

    jeddeliso

    guys, help, i've set up essentials and it is working, but the permission side is not. I am not recognised by the server that i am an admin, it doesn't let me do any commands, in the other hand, i can use all the commands while im op!

    CAN ANYONE HELP?? D:

    my server runs on bukkit build 440

    permissions 2.4 , essentials v225, iChat, WorldGuard and WorldEdit

    heres my permissions config file
    http://pastebin.com/51XDV80v
     
Thread Status:
Not open for further replies.

Share This Page