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

    brzavr

    Hi
    There is a problem
    given default group in world.yml

    Code:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            permissions:
            - lwc.protect
            - warpz0r.home
            - warpz0r.sethome
            - warpz0r.compasshome
            - warpz0r.compassreset
            - warpz0r.list
            - warpz0r.warp
            - general.spawn
            - general.playerlist
    I login under default player (not admin)

    if the build any blocks on the free space I get a message "you don't have permissions to use this"
    and the block remains

    P.S. sorry. i am russian, use google translation
     
  3. Offline

    ALufkin24

    I am using it for multiplayer.
     
  4. Offline

    Jeyge

    I don't see anything wrong with your permissions file so I'm going to hope I'll get lucky and you have the same problem someone had earlier. They were getting exactly that kind of behavior with having to put the permissions in the users section and it was caused by running Permissions v2.7.1. Would you happen to be running 2.7.1? If so, update to 2.7.2 and you should be good to go.
     
  5. Offline

    Aleyasu

    ok i now that this is a stupid question but... How do i change some1s group? what is the command? i tried using this command: /promote <player name> <group name> /changegroup <player name> <group name> /changegroup <player name> <group name> but nothing worked... Hope that someone will help me. Many thanks
    -Aleyasu
     
  6. Offline

    Jeyge

    In that case, I don't see anything wrong with the permissions file. What isn't working in BB?
    With just the default Permissions, you will have to open the permissions.yml file to change someones group. If you want to do it in game, I would suggest a plugin called PermissionsPlus.

    Вы не дали мне достаточно ваших прав доступа к файлам, чтобы увидеть, если есть проблемы там, но это не значит, мы не можем проверить что-нибудь другое. Вы также работает GroupManager? Если да, то что удалить. Вы руководите Разрешения v2.7.1? Если да, то обновление v2.7.2. Если ни один из выше, включает ваш server.log и полный файл permisisons.

    Кроме того, используя Google Translate.

    P.S. - I would love to know how well Google Translate did with this.

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

    velorth

    People im getting mad, i have a big problem, i've readed a lot of pages on that thread but i cant repair it by my way. I hope that you all can help me. I will copy and paste here my Permissions.

    -------------------------------HERE IT IS-------------------------------------
    # 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: true
    inheritance:
    permissions:
    - 'foo.bar'
    - 'archers.arrow'
    - 'archers.bow.*'
    - 'WolfSpawn.respawn'
    - 'WolfSpawn.release'
    - 'WolfSpawn.spawnatplayer'
    - 'AutoRepair.warn'
    - 'AutoRepair.repair'
    - 'AutoRepair.info'
    - 'AutoRepair.access'
    - 'lc.level.*'
    - 'lc.shout'
    - 'monstertamer.player.catch'
    - 'monstertamer.player.check'
    - 'monstertamer.player.befriend'
    - 'monstertamer.player.target'
    - 'monstertamer.player.release'
    - 'monstertamer.player.whistle'
    - 'monstertamer.player.follow'
    - 'monstertamer.player.wait'
    - 'monstertamer.player.select'
    - 'BedHeal.Advanced.Heal2'
    - 'mobRider.command.goto'
    - 'mobRider.command.attack'
    - 'mobRider.command.go'
    - 'mobRider.command.stop'
    - 'mobRider.command.follow'
    - 'mobRider.command.mount'
    - 'mobRider.players'
    - 'mobRider.animals'
    - 'mobRider.monsters'

    Moderator: BlueButterfly
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    - 'WeatherControl.*'
    - 'weatherplugin.weather'
    - 'archers.arrow'
    - 'archers.bow.*'
    - 'WolfSpawn.respawn'
    - 'WolfSpawn.release'
    - 'WolfSpawn.spawnatplayer'
    - 'AutoRepair.warn'
    - 'AutoRepair.repair'
    - 'AutoRepair.info'
    - 'AutoRepair.access'
    - 'lc.level.*'
    - 'lc.shout'
    - 'monstertamer.player.catch'
    - 'monstertamer.player.check'
    - 'monstertamer.player.befriend'
    - 'monstertamer.player.target'
    - 'monstertamer.player.release'
    - 'monstertamer.player.whistle'
    - 'monstertamer.player.follow'
    - 'monstertamer.player.wait'
    - 'monstertamer.player.select'
    - 'BedHeal.Advanced.Heal2'
    - 'mobRider.command.goto'
    - 'mobRider.command.attack'
    - 'mobRider.command.go'
    - 'mobRider.command.stop'
    - 'mobRider.command.follow'
    - 'mobRider.command.mount'
    - 'mobRider.players'
    - 'mobRider.animals'
    - 'mobRider.monsters'
    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:
    TheNo1Yeti:
    group: Admins
    permissions:
    Herpina:
    group: Moderator
    info:
    prefix: 'Moo'
    suffix: 'Cow'
    permissions:
    - 'herp.derp'
    - 'WeatherControl.*'
    - 'weatherplugin.weather'
    - 'archers.arrow'
    - 'archers.bow.*'
    Derpina:
    group: Admins
    permissions:
    - '-derp.derp'
    - 'WeatherControl.*'
    - 'weatherplugin.weather'
    - 'archers.arrow'
    - 'archers.bow.*

    -----------------------------------HERE IT FINISH------------------------


    And the image with the error i get:


    http://imageshack.us/photo/my-images/219/errores.png/

    [​IMG]

    Uploaded with ImageShack.us

    [​IMG]

    Uploaded with ImageShack.us
     
  8. Offline

    Jeyge

    @velorth
    Remove the text after Moderator:. If that is a user, add them in the users section.
     
  9. Offline

    velorth

    @Jeyge
    It have to be that? (red have to be erased)

    Moderator: BlueButterfly
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    - 'WeatherControl.*'
    - 'weatherplugin.weather'
    - 'archers.arrow'
    - 'archers.bow.*'
    - 'WolfSpawn.respawn'
    - 'WolfSpawn.release'
    - 'WolfSpawn.spawnatplayer'
    - 'AutoRepair.warn'
    - 'AutoRepair.repair'
    - 'AutoRepair.info'
    - 'AutoRepair.access'
    - 'lc.level.*'
    - 'lc.shout'
    - 'monstertamer.player.catch'
    - 'monstertamer.player.check'
    - 'monstertamer.player.befriend'
    - 'monstertamer.player.target'
    - 'monstertamer.player.release'
    - 'monstertamer.player.whistle'
    - 'monstertamer.player.follow'
    - 'monstertamer.player.wait'
    - 'monstertamer.player.select'
    - 'BedHeal.Advanced.Heal2'
    - 'mobRider.command.goto'
    - 'mobRider.command.attack'
    - 'mobRider.command.go'
    - 'mobRider.command.stop'
    - 'mobRider.command.follow'
    - 'mobRider.command.mount'
    - 'mobRider.players'
    - 'mobRider.animals'
    - 'mobRider.monsters'

    and then:

    users:
    TheNo1Yeti: (change that for BlueButterfly:?)
    group: Admins
    permissions:
    Herpina: (or change that?)
    group: Moderator
    info:
    prefix: 'Moo'
    suffix: 'Cow'
    permissions:
    - 'herp.derp'
    - 'WeatherControl.*'
    - 'weatherplugin.weather'
    - 'archers.arrow'
    - 'archers.bow.*'
    Derpina: (or change that?)
    group: Admins
    permissions:
    - '-derp.derp'
    - 'WeatherControl.*'
    - 'weatherplugin.weather'
    - 'archers.arrow'
    - 'archers.bow.*'
     
  10. Offline

    Jeyge

    @velorth
    Nope, the text after Moderator:.
    Moderator: BlueButterfly
     
  11. Offline

    velorth

    @Jeyge

    I think i dont get u. Its the same that i've wrote on permissions "Moderator: BlueButterfly". Sorry if i look so stupid, but if you help me it will be gratifying

    Lol i think i get, i have to erase bluebutterfly? But.. then how do i use Special permissions that only mods can use?

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

    Jeyge

    Change:
    Code:
    Moderator: BlueButterfly
    to:
    Code:
    Moderator:
    If BlueButterfly is a user, then in your users section:
    change:
    Code:
    users:
     [COLOR=rgb(255, 0, 0)]    TheNo1Yeti: (change that for BlueButterfly:?)[/COLOR]
             group: Admins
             permissions:
    to:
    Code:
    users:
    BlueButterfly
             group: Admins
             permissions:
    Btw, if you put your permission inside of "code" tags, then we can see the spacing and check for other problems.
     
  13. Offline

    velorth

    Yes! i think i've done it well, very thanks! if i do more mistakes i will post it there, and i will try to use code tags
     
  14. Hello, i finally wrapped my head around this plugin and now i cant live without it :)

    Would it be possible to enable a silent mode, so instead of it saying "you do not have permissions to do this" it would just say nothing?
     
  15. Offline

    BladeGG

    Hey. I'm getting this problem:

    I've tried reentering the lines and it doesn't help at all.

    I'll pastebin my permissions file, thanks!

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

    Jeyge

    You are missing a closing ' at the end of line 115:
    1. - 'multiverse.*
     
  17. Offline

    BladeGG

    That fixed it. Thanks, you are a lifesaver.
     
  18. Offline

    Unjust

    GAHHHH Perms is hurting itself and idk what's causing it.
    I even made a brand new server and the jar isn't extracting right anymore, it's giving me a permissionsworld.yml but not in the folder and it's blank. I had no trouble before.
    No errors anywhere! please help.
     
  19. Offline

    Jeyge

    Soon, it won't even create that blank file. I think what you are looking for is the zip link in the OP. It has a dummy permissions file and the instructions to copy that file to your plugins\permissions directory and name it <world name>.yml or just <world name> if you have file extensions turned off.
     
  20. Offline

    TJstriker

    can i get a better description on how to use multi-world permissions, like do i just copy what i renamed to "World" (in the plugins/permissions folder) and paste it in the same folder with my other world name instead of "World"?, then edit the permissions acordingly?
     
  21. Offline

    famerdave

    Chances of there ever being commands that add permissions in game?
     
  22. Offline

    Nove Lenducten

    I feel so dumb. i cant even figure out how to create permissions and stuff. lol do i have to change the yml to a txt file to edit then back?
     
  23. Offline

    Jeyge

    You nailed it. Just copy your existing file and rename it <world 2 name>.yml, change the permissions as you want them or set your copies if it will be the same and everything should work. Well, work right up until your world name doesn't change when you enter another world.
    I think 3.0 will have some commands but outside of that, you can always run PermissionsPlus.

    Nope, a yml file is just a formatted text file but don't use notepad to edit it. Use something like notepad++.

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

    JeffTheProGamer

    Me 2. why is that happening!!!
     
  25. Offline

    MentalPatient

    I'm not sure I can figure out my users.

    Given the following users...

    Code:
    users:
        MentalPatient:
            group: Admins
            info:
            permissions:
    
        nailbitersc:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        solrax:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        itsthefuzz:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        twister65:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        daver208:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        darktornaydoe:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        1001101:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:
    
        blind_panic:
            group: Moderator
            info:
                prefix: ''
                suffix: ''
            permissions:

    Some of them work, and some don't. The Moderator group has some permissions set and work fine for some people, like daver208, but other people like 1001101 end up with the default group permissions.

    Any ideas? I've been staring at this file for awhile.
     
  26. Offline

    Jeyge

    One post below that post is a response.

    All number player names must be enclosed in 's like '1001101'.

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

    MentalPatient

    What about special characters? Some players like blind_panic don't work at all.

    Thanks for the reply, gives me something to search for. :)
     
  28. Offline

    JeffJitb

    so i updated to permissions 2.7.2 since I was getting the BLOCK_BREAK and BLOCK_PLACE spam, and it is still happening =( this happened randomly today and I am currently using cb v 740. Any reason for this? or is the plugin just slightly outdated?
     
  29. Offline

    Jeyge

    You permissions yml file is incorrectly named most likely. Make sure it is <world name>.yml and not <world name>.yml.yml or anything else. If you have extensions turned off, the file name will just be <world name>.

    It won't hurt anything putting them all in 's but I don't think the _ should cause any problems.

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

    _fluffy

    Code:
    plugin:
    
        permissions:
    
            system: default
    
            copies:
    
    groups:
    
        Default:
    
            default: true
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: false
    
            inheritance:
    
            permissions:
    
                - 'foo.bar'
    
        Moderator:
    
            default: false
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance:
    
                - Default
    
            permissions:
    
                - 'bar.foo'
    
        Admins:
    
            default: false
    
            info:
    
                prefix: ''
    
                suffix: ''
    
                build: true
    
            inheritance:
    
            permissions:
    
                - '*'
    
    users:
    
        TheNo1Yeti:
    
            group: Admins
    
            permissions:
    
        Herpina:
    
            group: Moderator
    
            info:
    
                prefix: 'Moo'
    
                suffix: 'Cow'
    
            permissions:
    
                - 'herp.derp'
    
        PenguiBear:
    
            group: Moderator
    
            info:
    
                prefix: '&c[Admin]'
    
                suffix: ''
    this doesnt work for some reason. can somebody help?
     
  31. Offline

    Dragonntiger

    o-o I needs help.. When people are in my server, people that are ranks below admin, get their commands denied? any suggestions? I have asked quite a few times already :\
     
Thread Status:
Not open for further replies.

Share This Page