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

    Machete.Panda

    If your not going to move over the existing wiki information to the one your provide in the link. You should probably provide the existing wiki site for the old permissions: http://wiki.nexua.org/Permissions
     
  3. Offline

    danny1291208

    I don't know how to really use this, lets say i wanna use Magic Carpet, where would I put it? Under Admin or under my name? No matter where i try 'magiccarpet.mc' it never works, same with most other commands. If anyone can help me it would be great, thanks
     
  4. Offline

    Monkah

    I know you said in the FAQ that this was because of OUR config file, but my friends and I are seriously stumped on what we did wrong here. Could you mind lending us a hand?
     

    Attached Files:

  5. Offline

    sedryk

    good evening
    is there a way in games to [add, remove, check] group or user?
    thank
    Sorry for my English;)
     
  6. Offline

    MonsterTV

    Running CB 493 and a version of Permissions I downloaded about 5 minutes ago, so I assume it is up to date. I keep getting this crazy message in my server log, and I have no idea what it means. It doesn't SEEM to be causing any problem, except making the server log completely unusable, but I have not tested it extensively. Anyone know what this all means?

    2011-03-03 21:02:11 [SEVERE] Could not pass event BLOCK_PLACED to Permissions
    java.lang.NullPointerException
    at com.nijiko.permissions.Control.getGroups(Control.java:627)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:24)
    at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.java:227)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.ItemBlock.a(ItemBlock.java:107)
    at net.minecraft.server.ItemStack.a(ItemStack.java:56)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:160)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:482)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    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)​
     
  7. Offline

    Mrchef

    Me too! It seems whenever someone places or breaks a block it adds one of these error lines. I also just downloaded this a couple minutes ago. I still can't get the commands working though :/
     
  8. Offline

    cjc343

    Thanks for reading the FAQ guys. Sorry it doesn't provide more info right now. Unfortunately, those error logs don't help much right now, please post your permissions configs, either on pastebin or in code blocks.

    Please provide your permissions configs as well, and please remember to read the first post when you have issues, then check the last page or two of the thread.

    If you already have '*' permission for yourself, don't add it anywhere.

    If you don't, add it either to the groups you wish to have it, or to the individual users you wish to have it.

    Do not add it to users with '*'

    Do not add it if it is inherited from a group a user is in, or another group.

    Do not use tabs.

    http://forums.bukkit.org/threads/admin-yeditor-v1-2-β-edit-permissions-on-the-fly-400.4186/
     
  9. Offline

    gnftoxic

    Hey. I'm seeing "plugin: ..." at the top of the world.yml file - is there plans, or is it possible to allow plugins to get an integer of some sort, such as a block limit, from the world.yml file?
     
  10. Offline

    sedryk

    Thx yededitor work fine :)
    But i have a new problem
    Impossible too build or destroy a block
    i'm in admin group
    Code:
    plugin:
      permissions: {system: default, copies: null}
    groups:
      Guest:
        default: true
        info: {prefix: '&2', suffix: '&5', build: true}
        inheritance: null
        permissions: [essentials.depth, essentials.getpos, essentials.compass, essentials.mail.send,
          essentials.nick, essentials.eco, essentials.worth, essentials.sell, essentials.tpa,
          essentials.home, essentials.sethome, essentials.msg, essentials.afk, essentials.rules,
          essentials.motd, essentials.me, essentials.list, essentials.mail, essentials.helpop,
          essentials.ping, essentials.spawn, essentials.help]
      Member:
        default: false
        info: {prefix: '&1', suffix: '&4', build: true}
        inheritance: [Guest]
        permissions: [essentials.home, essentials.sethome, essentials.spawn, essentials.warp]
      Trusted Member:
        default: false
        info: {prefix: '&3', suffix: '&7', build: true}
        inheritance: [Member]
        permissions: null
      Moderator:
        default: false
        info: {prefix: '&9', suffix: '&d', build: true}
        inheritance: [Trusted Member]
        permissions: [essentials.ban, essentials.time, 'lwc.mod, essentials.tp', essentials.tpahere,
          essentials.tphere, essentials.kick]
      Admin:
        default: false
        info: {prefix: '&8', suffix: '&a', build: true}
        inheritance: [Moderator]
        permissions: [essentials.top, essentials.jump, essentials.back, essentials.whois,
          essentials.clearinventory, essentials.broadcast, essentials.kill, essentials.tpaccept,
          essentials.tpdeny, essentials.tp, essentials.tpahere, essentials.tphere, essentials.tppos,
          essentials.ban, essentials.banip, essentials.kick, essentials.unban, essentials.unbanip,
          essentials.setspawn, essentials.depth, essentials.getpos, essentials.compass,
          essentials.mail.send, essentials.nick, essentials.eco, essentials.worth, essentials.sell,
          essentials.help, essentials.tpa, essentials.home, essentials.sethome, essentials.msg,
          essentials.afk, essentials.rules, essentials.motd, essentials.me, essentials.list,
          essentials.mail, essentials.helpop, essentials.ping, essentials.spawn, essentials.new,
          yeditor.editor]
    users:
      sedryk:
        group: Admin
        permissions: []
      GalbaRoa:
        permissions: []
        group: Admin
    if i get OP all is good, if i deOP me no build ;)

    Server :
    Bukkit-0.0.0-458
    Permissions] version [2.5]
    Essentials build 245
    iChat
    yeditor

    if you understand me I'm lost. Thanks for help
     
  11. Offline

    MonsterTV

    It wasn't in the OP or the last couple pages. Here is my .yml file, in this case, named world1.yml. Everything is working fine, EXCEPT this message.

    (It wouldn't let me upload a .yml, so I made a .txt copy to post)
     

    Attached Files:

  12. Offline

    Espock

    for some reason this simple little code isnt working

    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'general.*'
                - 'essentials.warp'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - default
            permissions:
                - 'essentials.item'
                - 'essentials.heal'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    and the .yml is named world.yml and level-name=world
     
  13. Offline

    Insanehero

    Can I have different permissions for groups depending what world there in?
     
  14. Offline

    MalevolentZero

    Sorry, i'm really new to being a server admin and i'm only running a small lan server and I don't understand how to edit the permissions config to allow me to do stuff T.T. Could you explain it in a more watered down manner if possible? It would be greatly appreciated, thanks.
     
  15. Offline

    kaotic

    For some reason users in the Regulars group are not getting proper premissions, could you take a quick look at my config?

    http://pastebin.com/TPjBPg39
     
  16. Offline

    dragtor

    try changing the inheritance of the moderators to Regulars and inheritance of the Regulars to Default
    --- merged: Mar 4, 2011 6:58 AM ---
    check if u got any tabs cos it doesnt like tabs it likes spaces
    --- merged: Mar 4, 2011 6:59 AM ---
    show me the error ur getting from the hosting thing ant to do that right click press mark drag a box over it all then press enter
     
  17. Offline

    cjc343

    Try this (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:
                - 'essentials.depth'
                - 'essentials.getpos'
                - 'essentials.compass'
                - 'essentials.msg'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.list'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.help'
                - 'essentials.spawn'
                - 'essentials.warp'
                - 'essentials.who'
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'towny.spawntp'
                - 'towny.claim'
                - 'mcmmo.motd'
                - 'mcmmo.skills.*'
                - 'lwc.protect'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.top'
                - 'essentials.jump'
                - 'essentials.broadcast'
                - 'essentials.antioch'
                - 'essentials.kill'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.tree'
                - 'essentials.bigtree'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.tppos'
                - 'essentials.heal'
                - 'essentials.ban'
                - 'essentials.kick'
                - 'essentials.jail'
                - 'essentials.unban'
                - 'iConomy.admin.grant'
                - 'iConomy.admin.set'
                - 'iConomy.admin.stats'
                - 'iConomy.admin.reset'
                - 'towny.admin'
                - 'towny.town.new'
                - 'towny.nation.new'
                - 'towny.publicspawntp'
                - 'lwc.mod'
        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:
        MonsterTV:
            group: Admins
            permissions:
        Shere:
            group: Admins
            permissions:
        KowaiYume:
            group: Admins
            permissions:
        MisterPokeylope:
            group: Moderators
            permissions:
        Mutagen:
            group: Moderators
            permissions:
        Amemiya8:
            group: Moderators
            permissions:


    You don't have any users defined.

    Yes. Permissions for each world are controlled by file with the same name. If you have 'world' and 'nether' then 'nether.yml' will set permissions for the nether world.

    here (open)
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: 
                suffix:
                build: false
            inheritance:
            permissions:
                - 'commandbook.spawn'
        Regulars:
            default: false
            info:
                prefix: 
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'commandbook.give'
                - 'commandbook.give.stacks'
                - 'commandbook.setspawn'
                - 'commandbook.teleport'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Regulars
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admin:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        kaoticsnow:
            group: Admin
            permissions:
        Devilsclaw:
            group: Admin
            permissions:
        zVulture:
            group: Admin
            permissions:
        Ambosia:
            group: Moderator
            permissions:
        krissylee:
            group: Moderator
            permissions:
        chainer111:
            group: Regulars
            permissions:
     
  18. Offline

    Jandalf

    he means the empty lines in your post, but i think they arent in your file? please post ur permission file to pastebin.com. epiczones should not be a problem, it works well for me....
     
  19. Offline

    Espock

    @dragtor

    there wasn't any errors it just isnt working at all



    and im not trying to give myself admin when im a in the default group i cant use essentials.warp or any other line of code placed in default and when i give myself admin it does the same thing it wont let me use anything unless im a op i even copied my working code back from when niji was running it and that didnt work. ive pasted it in the yaml phrser got no errors and its just not working

    running CB 493
     
  20. Offline

    cjc343

    ok
    try this (open)
    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'general.*'
                - 'essentials.warp'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.item'
                - 'essentials.heal'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        AddUserLater:
            group: Admins
            Permissions:

    Also, what version of General are you running?
     
  21. Offline

    Espock

    2.1

    and the code isnt working still
     
  22. Offline

    cjc343

    General 2.1 doesn't work any more.

    I've released a fork: General 2.2

    Or you can find a new General plugin, there are several others that have been posted recently.

    E: I edited the file I posted above as well.
     
  23. Offline

    xZise

    Hello, one player on the server got the problem, that the plugin tells him he has no permission to do something. So I updated the config.yml to match the world's name and even after a reload it is telling the player that he hasn't the permission. Only after a re-login he could use the command. I'm the plugin developer and my plugin is using getHandler() to get the permission handler. And I'm registering the event so I got informed that plugins get enabled and disabled.

    Fabian
     
  24. Offline

    Jandalf

    so ur problem is that it only worked after a relogg? or whats the problem?
     
  25. Offline

    xZise

    Yep, after the relog it seems to be working.

    Fabian
     
  26. Offline

    Zerco

    I don't know if it's been fixed I haven't kept up with this as of late, but try renaming your world and world.yml to something different, there used to be a problem with it being the default name. Try naming it to "myworld" in the server.properties / folder name /world.yml. This may not be the solution but I can't see anything wrong with the config file and not too sure what else could be causing it.
     
  27. Offline

    sedryk

    I update all plugin but my problem still there.
    Built and destroi block are possible only if i'm OP.
     
  28. Offline

    Jandalf

    please copy ur permissions file to pastbin.com
     
  29. Offline

    sedryk

  30. Offline

    Jandalf

    you are using groupmanager i think, post ur problem there and u should know that permissions and groupmanager dont like each other

    (Yeti, i dont get the problem, he cant build...)
     
  31. Offline

    sedryk

    No groupmanager just permissions
     
Thread Status:
Not open for further replies.

Share This Page