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

    Matt Phillips

    can anyone tell me the default server command nodes for permissions?
    such as teleport/give/time set and such
     
  3. Offline

    bandgeek303

    if someone could help me, that would be great, i don't really understand how to use permissions :confused:
     
  4. Offline

    Jeyge

    There aren't any but you can use a plugin like DefaultPermissions to give them.
     
  5. Offline

    dxfire

    I think i have found a bug, but the probability is low.(So i haven't tried deactivating all plugins for testing)
    So, the deal is that the inheritance formatting resets to an unusable format.
    Code:
    inheritance:
    - 'Default'
    seems to work, but it resets to
    Code:
    inheritance:
    - Default
    which doesn't seem to work :s
    please stop me if i am wrong!

    cb 740
    permissions 2.7.2
     
  6. Offline

    imaxorz

    Yup looks like I will have to do that. I was just wondering if there was another way so I didn't have to copy new players to two different places.

    Thanks for the response though.
     
  7. Offline

    Jeyge

    What part are you not understanding? Did you go thru the first post and the wiki?
    What command are you using to get Permissions to save the file? I haven't been able to figure out anything that would cause it to do that.

    Both formats should work just fine though. Are you sure there isn't something else that is being changed when the file is being saved that is causing problems?
     
  8. Offline

    MarioGuy

    Permissions is, well, not really working. It has been coming up with the following error...

    It loads every permission except for the permissions for the group "Moderator".

    This is my config file.

    I am running CB 740 and Permissions 2.7.2
     
  9. Offline

    bandgeek303

    yes i did
     
  10. Offline

    Twigy1

    How do you set prefixes and sufixes because when i set them it doesn't show them in the chat.
     
  11. Offline

    Psycho Robot

    Permissions doesn't handle prefixes by itself. It just makes them avaliable for other plugins to use, such as iChat, Hero Chat, etc.
     
  12. Offline

    Jeyge

    You will need a chat plugin like iChat for those to work.
     
  13. Offline

    bram2005

    Now i have now the permission plugin and i get a error as i delte a block
    Code:
    Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
    Who can help me
    srry for my bad english
     
  14. Offline

    Twigy1

    Can someone give me the ichat link
     
  15. Offline

    Jeyge

    It will be really hard to tell if there is a problem with your permissions.yml file with it formatted that way but I'm surprised anything works when you are receiving the error you listed. Seems like the Permissions plugin didn't load.

    Sure. iChat

    BLOCK_BREAK problems are usually caused by running Permissions 2.7.1 or a permissions.yml file name problem. Make sure you are running 2.7.2 and your file name is <world>.yml.

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

    Twigy1

    does anyone one know how to quickly add permissions nodes it gets anoying because people keep anoying me for permissions.
     
  17. Offline

    bram2005

    i have the permission plugin 2.7.2 and i may not the symbool < and > in the name
     
  18. Offline

    dxfire

    I'm on a mac, so "textwrangler". (inb4 osx sucks) it's the equivalent to notepad++ i guess.
    Yeah, i had problems with inheritance until i changed it to - 'permission.node'.
    I think permissions reformats the yml file when the formatting is wrong, my permission nodes used to be
    Code:
    - 'permission.node'
    before, but someday it became - permission.node
     
  19. Offline

    vapid2323

    Check out McMyAdmin works well for me.
     
  20. Offline

    Jeyge

    I really don't think that is Permissions that is doing that. I know PermissionsPlus will change the formatting a little but not Permissions. But still, there isn't anything wrong with either 'permission.node' or permission.node.

    If you want to post your whole permissions.yml file, I can take a look and see if there is another problem with it.
     
  21. Offline

    Elvis

    Can anyone help me, ive heard this from several people just confirming before i actually do. But
    i get players telling me that everytime they place a block it says that they dont have the permissions to do that
    yet they still can. What im asking is if anyone knows how to stop that. Some players say it has to do with craftbook but im not to entirely sure
     
  22. Offline

    Kudos

    Hello all,

    I've been trying to get the MCMMO plugin to work properly with Permissions. When I have everything set up and log into the server though, I do not have access to the skills. In addition to that, when I break blocks (which would add experience to the mining skill) I start getting errors popping up on the server. (See attached image.)

    I have my yaml file renamed to world.yml, and this is what it looks like:

    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.
    #   If this file is for your default world (the one in server.properties) then you must
    #   leave copies blank.
    #  Example: copies: Derp    -  This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name.  So if it is level-name: world  then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document.  Use only spaces.  A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
        permissions:
            system: default
            copies:
    
    ##
    # AntiBuild is included with this.  To disable a group from being able to build then
    # set the build: flag to false (build: false).  If you want a group to be able to build
    # then set it to true.
    ##
    # 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:
    #
    #       - 'foo.bar'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'foo.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    #   If you give a group this permissions, do not have the group inherit any permissions
    #   from other groups.  Any users assigned to this group should NOT be given any additional
    #   permissions either.
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-foo.bar'
    ##
    #   prefix: and suffix: do not do anything on their own.  You need another outside plugin
    #   such as iChat or HeroChat in order for these to do anything.
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
        Players:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'mcmmo.regeneration'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.party'
                - 'mcmmo.ability.*'
                - 'mcmmo.item.chimaerawing'
                - 'mcmmo.skills.*'
                - 'vampire.default.*'
        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 Moderator 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 can also have a prefix and suffix as seen with Herpina
    ##
    users:
        ChaosKudos:
            group: Admins
            permissions:
        corso1:
            group: Players
            info:
                prefix: ''
                suffix: ''
            permissions:
        meto8:
            group: Players
            permissions:
        Avalerios:
            group: Players
            permissions:
        psychoticpotato:
            group: Players
            permissions:
    Can anyone tell me what I need to do to make it so that MCMMO will work with Permissions up?
     

    Attached Files:

  23. Offline

    Jeyge

    CraftBook is listed as causing this the most but other plugins may be causing it too. Some say to just add craftbook.* to your permissions and others craftbook.mech.*.

    There isn't anything wrong with your permissions.yml file although you may want to give everyone mcmmo.commands.* so they can use the special abilites but that is up to you. If you do give them that, I would also take away mcmmo.commands.setmyspawnother.

    As for your error, that is the error that seems to be coming up a lot more recently. What it means is that the Permissions plugin couldn't find your permissions.yml file. This could either be a problem with the naming, something really out of the ordinary with the file itself (saved as unicode instead of utf-8, ...), or you are running v2.7.1 which had a major problem.

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

    Elvis

    Thanks also 1 last thing if you could, which i really doubt you could but im not going to pass on this opportunity
    for someone that has a knack for helping :p. I've recently been running into Disconnection problems with my server
    Mostly my Guests will Dc randomly alot and i dont know why it has nothing to do with my connection i can guarantee that, but they will dc alot and sometimes they dont a good majority of the time new people come in they will disconnect i just dont know why here is the error one gets after a dc from my command prompt

    19:52:58 [SEVERE] java.net.SocketException: Software caused connection abort: so
    cket write error
    19:52:58 [INFO] Connection reset
    19:52:58 [SEVERE] at java.net.SocketOutputStream.socketWrite0(Native Metho
    d)
    19:52:58 [SEVERE] at java.net.SocketOutputStream.socketWrite(Unknown Sourc
    e)
    19:52:58 [SEVERE] at java.net.SocketOutputStream.write(Unknown Source)
    19:52:58 [SEVERE] at java.io.DataOutputStream.write(Unknown Source)
    19:52:58 [INFO] pedro lost connection: disconnect.endOfStream
    19:52:58 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:120)
    19:52:58 [SEVERE] at net.minecraft.server.NetworkManager.e(NetworkManager.
    java:96)
    19:52:58 [SEVERE] at net.minecraft.server.NetworkManager.d(NetworkManager.
    java:230)
    19:52:58 [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFi
    le:90)

    any idea cause i sure in the ^^^^ dont know why
     
  25. Offline

    Jeyge

    That one I can't help you with but I can point you to the topic about it. Post your information there and hopefully they will get enough to figure out why it is happening.
     
  26. Offline

    Kudos

    First off, thanks very much for the quick reply. I am running the most up-to-date versions of Permissions, MCMMO, and Bukkit, and the other plugin I'm actively using with Permissions, Vampire, works with no errors. This is very baffling and disheartening as without Permissions, I can't really do very many other plugins as the players have grown quite attached to their MCMMO. Thanks for your assistance though, I guess it's just some crazy bug I'll have to wait on to get fixed at a later date.
     
  27. Offline

    KingPin

    im trying to find some recent info but 170+ pages is .. a lot.... so does anyone have any info on using anything other than a flatfile for permission users? a mysql table would be a godsend at anything more than a couple of dozen users.....
     
  28. Offline

    Jeyge

    People have said that 3.0 will have MYSql support but in the meantime, you can use sqlPermissions.
     
  29. Offline

    KingPin

    very nice, thank you :)
     
  30. Offline

    deanesmay

    Help! This must be something minor but it's driving me crazy. Using Minecraft Beta 1.5_02, CraftBukkit 706, EasyFlight 0.3, mcdCarpeteer 0.1, Towny 0.63, and Essentials 2.2.8, and the current Permissions 2.7.2. All loaded on a fresh server today.

    Everything loads without error. Anyone can log in. However, with the exception of people in the groups containing '*' as commands, no one can type ANY command. You hit T and type /anything (any command at all, /help, /suicide, /help 1, etc. anything at all) and it says "You do not have access to that command." It does not matter WHAT command. But as soon as you put them back in the 'Zeus' group (which has '*') they can type anything again.

    Here's a copy of the file for reference. Can anyone help?


    ---
    plugin:
    permissions:
    system: 'Guest'
    copies: ''
    groups:
    Admin:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - >
    Operator, Moderator, UltimateBuilder,
    SuperBuilder, Builder, Guest
    permissions:
    - '/broadcast'
    Builder:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - 'Guest'
    permissions:
    - '/sethome'
    - '/home'
    - '/pay'
    - '/sell'
    - '/warp'
    DemiGod:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - >
    Admin, Operator, Moderator,
    UltimateBuilder, SuperBuilder, Builder,
    Guest
    permissions:
    - '/god'
    Guest:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance: ''
    permissions:
    - '/suicide'
    - '/helpop'
    - '/help'
    - '/help 1'
    - '/help 2'
    - '/help 3'
    - '/help 4'
    - '/help 5'
    - '/help 6'
    - '/help 7'
    - '/help 8'
    - '/help 9'
    - '/help 10'
    Hades:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance: ''
    permissions:
    - '/suicide'
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - >
    UltimateBuilder, SuperBuilder, Builder,
    Guest
    permissions:
    - '/kick'
    - '/ban'
    - '/mute'
    Operator:
    default: false
    info:
    prefix: 'Op'
    suffix: ''
    build: true
    inheritance:
    - >
    Moderator, Ultimate-Builder,
    SuperBuilder, Builder, Guest
    permissions:
    - '/banip'
    - '/give'
    - '/getpos'
    - '/heal'
    - '/invsee'
    - '/togglejail'
    - '/tpa'
    - '/tphere'
    - '/tppos'
    - '/unban'
    SuperBuilder:
    default: false
    info:
    prefix: 'SuperBuilder'
    suffix: ''
    build: true
    inheritance:
    - 'Builder, Guest'
    permissions:
    - '/tp'
    UltimateBuilder:
    default: false
    info:
    prefix: 'UltimateBuilder'
    suffix: ''
    build: true
    inheritance:
    - 'SuperBuilder, Builder, Guest'
    permissions:
    - '/town'
    Zeus:
    default: false
    info:
    prefix: 'Zeus'
    suffix: ''
    build: true
    inheritance: ''
    permissions:
    - '*'
    users:
    Cgoodis:
    group: 'Operator'
    permissions: ''
    Deanesmay:
    group: 'Guest'
    permissions: ''
    Jayfeather794:
    group: 'Operator'
    permissions: ''
    Roshougon:
    group: 'DemiGod'
    permissions: ''
    jtklaus:
    group: 'Builder'
    permissions: ''
    orocket333:
    group: 'Operator'
    permissions: ''
     
  31. Offline

    mf9120

    so, i have a server with permissions and worldguard i keep on protecting regions and even owners cant edit on them, only i can, can someone help?
     
Thread Status:
Not open for further replies.

Share This Page