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

    TheYeti

    @RustyDagger Let me know if change the config file name fixes the issue. I have been having reports that it still does it randomly.

    Question for everyone. I have been getting mixed feedback on including the AntiBuild functionality within Permissions. Should I include it in Permissions or should I pull AntiBuild out and put it to it's own plugin again?
     
  3. Offline

    koneko

    While I can't give much feedback on the AntiBuild (not used it personally) aspects, I can say that I went ahead and updated to the new 2.5.1 you posted AND used the edited config you reviewed and I'm still getting no where.

    No one aside from Admin (myself) has any permissions for anything set. The most general things seem to work, such as /time (to check time), but specific commands, such as warping, iConomy functions, etc, aren't working. I've even tried copying the permissions directly to an individual to test it that way as well - no go.

    I'm sorry to add to the tugging at your coattails for help, Yeti, but I'm absolutely at a loss. I even tried downgrading again and cannot due to other plugins crashing and burning when doing so.

    Could you please take another look at the code you had me use? Perhaps there's something else you can think of.
     
  4. Offline

    shane3x

    I'd be able to give feedback as soon as I can get an issue resolved please.
     
  5. Offline

    RustyDagger

    Yer that solved all my issues helps when the file is named the same as the map lol i over looked it cause i downloaded just theplugins folder from the live server to my test server then go about updating it over looked the map names :eek: LOL
     
  6. Offline

    Boof

    Could I please get a lsit of commands permissions so that I actually know what I'm doing? Thanks
     
  7. Offline

    KillerBunnys122

    Keep AntiBuild with permissions. Almost no reason to have it separate.
     
  8. Offline

    Freelancer852

    No reason to have them separate. The default config files for Permissions include "build: true/false", and I previously assumed that this functionality was built in because of that.
     
  9. Offline

    YoungFly

    Can't use GM and Permissions. Pick one.

    /mod is not a Permissions command.

    Wich one is better?

    Here is my data.yml : http://pastebin.com/wXsWSM3S
    Here is my config.yml : http://pastebin.com/HQqc5a5p

    I deleted permission and still i cannot add someone to a group. the command /mod is a shortcut for /modify wich used to work.

    Now, to get it worst, a player who is on the default group can use some admin commands like kill, ban, etc, and I dont know whats wrong :S
     
  10. Offline

    xCody_F

    I downloaded the 2.5.1 update and I still get the "BLOCK_PLACED" error. Here is my permissions file. Also, on a side note, I was wonder how to add prefixes? anything I try doesn't work. Thanks
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                -
        VIP:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'myhome.home.basic.home'
                - 'myhome.home.basic.set'
                - 'myhome.home.basic.delete'
                - 'myhome.home.soc.others'
                - 'myhome.home.soc.list'
                - 'myhome.home.soc.invite'
                - 'myhome.home.soc.uninvite'
                - 'mywarp.warp.basic.warp'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - VIP
            permissions:
                - 'myhome.admin'
                - 'myhome.convert'
                - 'mywarp.*'
        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:
        napkinss:
            group: VIP
            permissions:
        skydif:
            group: VIP
            permissions:
        laligag7:
            group: VIP
            permissions:
        Cody_F:
            group: Admins
            permissions:
                - '*'
        Mark_The_Marine:
            group: Admins
            permissions:
                - '*'
        TgTermin8r:
            group: Admins
            permissions:
                - '*'
     
  11. Offline

    thefollower457

    http://pastie.org/pastes/1623117
    I am not sure what I did wrong here but everytime I try to use a command in Minecraft I get the message:
     
  12. Offline

    TheYeti

    @xCody_F Don't give your users * permissions if they are already part of admin. It's not needed.
     
  13. Offline

    shane3x

  14. Offline

    TheYeti

    @thefollower457 What would be extremely helpful is when it gives that error if you could grab any errors that got spit out into the console and paste them here.
     
  15. Offline

    Clay Michaels

    So I'm new to running a bukkit server, I'll admit. But after uploading the permissions.jar and restarting the server It didn't create the /permissions/ folder or the text files which apparently should be contained therein. No errors during startup. I created the /Permissions/ folder after a few restarts hopping it would help but there's still nothing in it. should I just take someone's config.yml and modify it?

    Thanks

    http://pastie.org/1623254
     
  16. Offline

    Geoff Winans

    I'm the one that originally argued for AntiBuild to be included with Permissions.

    My argument was fairly simple and seemed to have made the intended impression:

    Such a non-ambiguous configuration option should have built-in enforcement within the core Permissions system. While it is a framework, part of a framework is directly addressing non-ambiguous features.

    build: false (or true) is not, in any way, ambiguous.

    If people are complaining about it, leave it built in, but add a new permission node:

    use-antibuild: [false|true]

    This will give the necessary support for those who want to use other anti-build options (why?)
     
  17. Offline

    TheYeti

    Download the ZIP file itself. That provides the configuration files that you need if your just getting started.
     
  18. Offline

    thefollower457

    thats the message I get when I try to use a plugin
     
  19. Offline

    iMer

    SOLVED!
    i just reconfigured it with the example config - don't know why it did not work

    Next Problem:
    The config won't work -.-'
    Code:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
               - 'essentials.clearinventory'
               - 'essentials.item'
               - 'essentials.help'
               - 'essentials.tpa'
               - 'essentials.tpaccept'
               - 'essentials.tpdeny'
               - 'essentials.tpahere'
               - 'essentials.home'
               - 'essentials.sethome'
               - 'essentials.warp'
    i can't use /item or /home etc.
     
  20. Offline

    shane3x

    So is it or is it not working? Can't quite seem to tell.

    @Everyone else

    Still requesting assistance (as well as a few others with the same problem) please.

     
  21. Offline

    iMer

    i just noticed that everytime when i destroy/build a block the log file gets spammed with errors:
    Code:
    07:07:51 [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: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.a(ItemInWorldManager.java:42)
            at net.minecraft.server.EntityPlayer.f_(EntityPlayer.java:72)
            at net.minecraft.server.World.a(World.java:1011)
            at net.minecraft.server.WorldServer.a(WorldServer.java:53)
            at net.minecraft.server.World.f(World.java:993)
            at net.minecraft.server.World.d(World.java:970)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    So - the plugin does not seem to work at all

    i just downgraded to 2.4 - there are no error messages, but it does not work, too
    might essentials be the reason?
     
  22. Offline

    Freelancer852

    There are no in-game commands. You must add each player you want in a non-default group to the yml file manually and associate them with a group.

    That's up to the plugins developers, each plugin has its own individual permission names and such.
     
  23. Offline

    HundredxNails

    i am trying to set it up so the default prevents any server commands from being used besides /help. I want moderator to be able to access every command from the Essentials plugins but /item /give and teleports to people. I want Admin with access to all.

    However the issue I am running into is that everyone is able to use every command. please bear with me I am new to the bukkit system and Permissions concept.

    here is how my groups are set up

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&d'
                suffix: ''
                build: false
            inheritance:
            permissions:
                -
        Moderator:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.depth'
                - 'essentials.getpos'
                - 'essentials.compass'
                - 'essentials.back'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.list'
                - 'essentials.kit'
                - 'essentials.kit.*'
                - 'essentials.help'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
        Admins:
            default: false
            info:
                prefix: '&c'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    and my users field
    Code:
    Users:
        Adminface:
            group: Admins
            permissions:
        Modface:
            group: Moderator
            permissions:
        defaultface:
            group: Default
            permissions:
    as far as i am aware I did it correctly. but it doesn't seem to register. default cannot build, but still can use all available commands. any ideas?
     
  24. Offline

    shayneo

    I'm getting this same problem too. Is there any chance of a fix. Theres three reports of it now (including this) suggesting the problem is not just an individual mismatch.
     
  25. Offline

    Tobbi

    YESSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!! THANK YOU!!!!!!!!!!!!!!!!!!!!! YOUR THE F'CKING BEST!!!!!!!!!!! IT WORKS!!!!!!! WOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
     
  26. Offline

    cjc343

     
  27. Offline

    Sneikki

  28. Offline

    Nervous

    That still doesnt work. Commands as /heal, /tp works but not /lwc and /home.
     
  29. Offline

    Al0ysiusHWWW

    Herp Derp Disclaimer: Using OS X and a n00b. Lurked for about 10 pages of flaming, and got tired.

    Is the "jar only" file what I unzip? the only yml file I find with the download doesn't seem to be appropriate to what you describe. I feel like I'm missing another component, since I don't get yml everyone is pasting on here.
     
  30. Offline

    cjc343

    whooops missed some stuff (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: true
            inheritance:
            permissions:
                - 'signtrader.makeGlobalSign'
                - 'signtrader.makePersonalSign'
                - 'signtrader.admin.breakAnySign'
                - 'signtrader.use'
                - 'lwc.protect'
                - 'herochat.create'
                - 'herochat.remove'
                - 'myhome.home.soc.public'
                - 'myhome.home.soc.private'
                - 'myhome.home.soc.list'
                - 'myhome.home.soc.list'
                - 'myhome.home.basic.*'
                - 'myhome.home.soc.invite'
                - 'myhome.home.soc.uninvite'
        Admins:
            default: false
            info:
                prefix: '&cAdmin&7'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - '/stopfire'
                - '/god'
                - '/heal'
                - '/slay'
                - 'lwc.mod '
                - 'lwc.admin'
                - 'mcbans.kick'
                - 'mcbans.lookup'
                - 'mcbans.view_ban'
                - 'mcbans.unban'
                - 'mcbans.ban.local'
                - 'mcbans.ban.global'
                - 'mcbans.admin'
        Owner:
            default: false
            info:
                prefix: '&cAdmin&7'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    #
    ##
    #
    # Users denote which users are included in which group.
    #
    # Tebbs is in the owner group
    #
    # Kurtisware69 is a member of the mod 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:
        Linkbleu:
            group: Owner
            permissions:
     
  31. Hey,

    i've got a problem with the permissions for the General Plugin.

    Everything works, but it tells me that i don't have the permission to use the "time" command.

    So i added the permission to me and the Admin Group (general.* is also activ) but it didnt help.

    Here is my config:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'myhome.home.basic.*'
                - 'general.spawn'
                - 'general.player-info'
                - 'DeathChest.use'
                - 'DeathChest.allowQuickLoot'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'myhome.*'
                - 'general.*'
                - 'worldedit.*'
                - 'DeathChest.freeChest'
                - 'DeathChest.freeSign'
                - 'DeathChest.allowQuickLoot'
                - 'general.time'
    
    
    users:
        eXifreXi:
            group: Admins
            permissions:
                - 'general.time'
    Hope you can help me.
     
Thread Status:
Not open for further replies.

Share This Page