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

    u83rju1c3

    changed it from 'plugins:' to 'plugin:'
    on a hunch, grabbed a fresh copy of worldedit and worldguard and the errors stopped... perhaps there was an update that craftbukkituptodate grabbed wrongly. sorry for the mixup.
     
  3. Offline

    kalner123456

    how cand i make a persons name appear pink or blue?
     
  4. Offline

    Kene

    Permissions doesn't seem to want to add me to the Admins group. Any suggestions?
     
  5. Offline

    rcjrrjcr

  6. Offline

    darkm3tr01d

    ok so i just wasted a little time on irc
    maybe someone here can help
    http://pastie.org/1799533
    the only thing i can tell is that it's definitely not anything to do with my .yml file
     
  7. Offline

    Kene

  8. Offline

    rcjrrjcr

    Looking at it.

    Found it.
    Change this:
    Code:
        PowerUser:
            default: false
            info:
                prefix:''
                suffix:''
                build: true
            inheritance:
                - Default
            permissions:
                - 'foo.bar'
    
    to this:
    Code:
        PowerUser:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'foo.bar'
    
    Note the spacing between the two single quotes and "prefix:". Same goes for "suffix:". YAML is really fussy.

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

    Pheonix14

    Ok I feel retarded, I can't get my permissions to work, I'm constantly getting a "You Don't Have Permission" Error. I also can't see to change anyones ranks. This is my YAML file. can anyone help?

    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:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
        Builder:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - commandbook.who
                - commandbook.motd
                - commandbook.rules
                - commandbook.kit.list
                - commandbook.kit.kits.Stone
                - commandbook.spawn
                - commandbook.msg
                - commandbook.whereami
                - commandbook.whereami.compass
                - commandbook.clear
                - creaturebox.dropspawner
                - creaturebox.placespawner
                - BOSEconomy.common
                - mh.sethome
                - mh.deletehome
                - mh.home
                - 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
        Trusted:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - commandbook.say.me
                - commandbook.whois
                - commandbook.whois.other
                - commandbook.kit.list
                - commandbook.kit.kits.Iron
                - commandbook.kit.kits.Water
                - creaturebox.set
                - BOSEconomy.common
        Uber:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Builder
                - Trusted
            permissions:
                - commandbook.spawnmob
                - commandbook.spawnmob.many
                - commandbook.teleport
                - commandbook.teleport.other
                - commandbook.clear.other
                - commandbook.kick
                - commandbook.bans.ban
                - commandbook.bans.unban
                - commandbook.bans.isbanned
                - commandbook.bans.load
                - commandbook.bans.save
                - commandbook.kit.list
                - commandbook.kit.kits.Uber
                - commandbook.kit.kits.Lava
                - BOSEconomy.common
        Owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Builder
                - Trusted
                - Uber
            permissions:
                - commandbook.reload
                - commandbook.give
                - commandbook.give.other
                - commandbook.give.infinite
                - commandbook.give.stacks
                - commandbook.give.stacks.infinite
                - commandbook.setspawn
                - commandbook.time
                - commandbook.say
                - commandbook.debug.info
                - commandbook.debug.clock
                - commandbook.kit.list
                - creaturebox.give
                - BOSEconomy.common
                - BOSEconomy.admin.money
                - BOSEconomy.admin.bracket
                - BOSEconomy.admin.bank
                - BOSeconomy.admin.reload
                - worldedit.*
                - ampoll.admin
    
    ##
    # 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:
        pheonix14:
            group: Owner
            info:
                prefix: ''
                suffix: ''
            permissions:
        Pheonix15:
            group: Uber
            info:
                prefix: ''
                suffix: ''
            permissions:
    I know it's long but That's the whole thing and I really need to fix this problem.
     
  10. Offline

    gravix

    Still can't figure out my problem.

    This is my Bukkit console:


    Code:
    21:27:45 [INFO] Starting minecraft server version Beta 1.4
    21:27:45 [INFO] Loading properties
    21:27:45 [INFO] Starting Minecraft server on *:25564
    21:27:45 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-653-
    g9992fff-b677jnks (MC: 1.4)
    21:27:45 [INFO] Preparing level "configworld"
    21:27:45 [INFO] Preparing start region
    21:27:45 [INFO] 144 recipes
    21:27:46 [INFO] [Permissions] (Phoenix) was Initialized.
    21:27:46 [INFO] [Permissions] version [2.6] (Phoenix)  loaded
    21:27:46 [INFO] Done (0.057s)! For help, type "help" or "?"
    

    This is my .yml file. It's in plugins/Permissions/configworld.yml , and my world is indeed called configworld

    The only plugin I have installed is Permissions.

    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: 'test'
                suffix: ''
                build: true
            inheritance:
            permissions:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - bar.foo
        Admins:
            default: false
            info:
                prefix: 'admin'
                suffix: ''
                build: true
            inheritance: null
            permissions:
                - '*'
    users:
        xxoldgrandmaxx:
            group: Admins
            permissions:
    
    
    
    I'm unable to perform any admin commands although my username is in the users list. I feel as though my users parameter is somehow messed up, although I can run this through a YAML parser.

    Help would be much appreciated.
     
  11. Offline

    rcjrrjcr

    Do you have WorldEdit/Guard?

    The current version is now 2.7. And what exactly do you mean by "unable to perform any admin commands"? Are there errors in the server console?

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

    Pheonix14

    I have WorldEdit so I can run Craftbook
     
  13. Offline

    rcjrrjcr

    That may be the problem. There have been a lot of WorldEdit-related bugs recently.
     
  14. Offline

    Meno

    I have put together a helper page to aid in the creation and maintenance of the YAML based permissions files used for the permissions plugin.

    Although the YAML parser used will accept most notations it's preferable to use the notation in the demo file in the text area. You should be able to take your pre-existing permissions YAML, paste it into the textarea at the top, click parse, and all being well it should load your existing groups and users.

    The text-area containing the YAML should auto update when you click actions such as new user, new group and save.

    If you do have issues with YAML not parsing properly, unless there is something seriously wrong with your file the parser will do its best to get as much info out as possible, clicking save will more often than not, reformat the file into a workable version.

    I also added some auto-complete on the permissions fields, at the moment it's just loaded with roughly 230 odd essentials based permissions, although I hope to add to these in the future.

    I hope someone will find it useful!

    http://www.wi-alliance.com/yamlhelper/
     
  15. Offline

    Pheonix14

    Is there a way that I can fix it or should I drop permission temporary.

    Dropping WorldEdit isn't really an option for me...
     
  16. Offline

    Zebitty

    Non admin group members on my server get the"You don't have permission to use this" message when right clicking on doors, right clicking to place blocks etc.. yet they can still open the door, place the block etc.

    I read back a bit and noticed others have had this and were told to 'read back a few pages' but there doesn't seem to be a fix for this in any of the posts here. One user was directed to update worldedit, which they did (to 4.3) and still the error message persists.

    I'm running:
    Permissions 2.7
    CB 677
    WorldEdit 4.3

    My world.yml is pretty much the vanilla file. All I've done with it so far is type my name over the example admin name in the file and add a single user to the Moderators group. I used Notepad++ (with 4xspaces instead of TABs option) and to be sure, I ran it thru the online YAML parser and it was all ok.

    Can someone please give me a suggestion on how to fix this - its doing my head in :(
    Zeb.

    Oh on a side note - when I was using flat file permissions, non admin users were able to teleport about the place using the redstone compass. What permissions do I need to set in world.yml for them to be able to do this?
    Thanks.
     
  17. Offline

    darkm3tr01d

    wow you're the man
     
  18. Offline

    rcjrrjcr

    Nifty.
     
  19. Offline

    gravix

    Changed to 2.7, feel stupid for overlooking that :\

    There's no errors in the server console, and although my name is set on the user list under Admins, if I try to do a /permissions -reload all, I get a "You don't have permission" error.
     
  20. Offline

    theedenknight

    Code:
    plugin:
        permissions:
            system: default
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - essentials.helpop
            - essentials.help
            - essentials.msg
            - essentials.rules
            - essentials.home
            - essentials.warp
            - essentials.sethome
            - essentials.spawn
            - mcmmo.skills.*
            - mcmmo.commands.party
            - mcmmo.chat.partychat
            - essentials.list
        Viewer:
            default: false
            info:
                prefix: '&8|&7Viewer&8|&7'
                suffix: ''
                build: false
            inheritance: null
            permissions:
            - worldedit.navigation.*
        Regular:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inhertiance: default
            permissions:
            - essentials.sethome
            - essentials.home
            - essentials.spawn
            - mcmmo.skills.*
            - mcmmo.commands.party
            - essentials.signs.buy.use
            - essentials.signs.sell.use
            - essentials.signs.trade.use
            - mcmmo.chat.partychat
            - essentials.list
            - essentials.warp
            - lwc.cprivate
            - lwc.cpublic
            - lwc.cpassword
            - lwc.cunlock
            - essentials.warp.list
        Premium:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inhertiance: default
            permissions:
            - essentials.sethome
            - essentials.home
            - essentials.spawn
            - mcmmo.skills.*
            - mcmmo.commands.party
            - essentials.signs.buy.use
            - essentials.signs.sell.use
            - essentials.signs.trade.use
            - mcmmo.chat.partychat
            - essentials.list
            - essentials.warp
            - lwc.cprivate
            - lwc.cpublic
            - lwc.cpassword
            - lwc.cunlock
            - essentials.warp.list
        Moderator:
            default: false
            info:
                prefix: '&2|&aMod&2|&a'
                suffix: '&c'
                build: true
            inhertiance: Regular
            permissions:
            - essentials.me
            - essentials.warp
            - essentials.sethome
            - essentials.signs.buy.create
            - essentials.signs.sell.use
            - essentials.home
            - essentials.setwarp
            - essentials.signs.sell.create
            - tplus.*
            - essentials.clearinventory
            - essentials.nick
            - essentials.spawn
            - essentials.help
            - essentials.kick
            - essentials.signs.trade.create
            - essentials.signs.trade.use
            - essentials.ban
            - essentials.unban
            - essentials.unbanip
            - essentials*
            - godmode.god.self
            - mcmmo.skills.*
            - mcmmo.commands.party
            - mcmmo.chat.partychat
            - essentials.time
            - Worldguard.*
        HeadModerator:
            default: false
            info:
                prefix: '&2|&aMod&2|&a'
                suffix: ''
                build: true
            inheritance: Moderator
            permissions: null
        Admin:
            default: false
            info:
                prefix: '&1|&9Admin&1|&9'
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
            - mcMMO.*
            - myhome.*
            - lwc.*
    users:
        Corel94:
            group: Admin
            permissions: null
        Psychoapfel:
            group: Admin
            permissions: null
        DasHaus:
            group: Moderator
            info:
                prefix: Haus
                suffix: olol
            permissions:
            - essentials.*
            - worldedit.*
        Chrisanton:
            group: Viewer
            permissions: null
        D4rkSoul95:
            group: Moderator
            permissions: null
        xito:
            group: Moderator
            permissions: null
        Alexyet:
            group: Regular
            permissions: null
        K_A:
            group: Regular
            permissions: null
        philler:
            group: Regular
            permissions: null
        TheTorpedo:
            group: Regular
            permissions: null
        Frosti123:
            group: Regular
            permissions: null
        SirBanjo:
            group: Regular
            permissions: null
        lookslikeLink:
            group: Regular
            permissions: null
        EllisDeadHead:
            group: Regular
            permissions: null
        PrestigeKirby:
            group: Regular
            permissions: null
        thunderstormt:
            group: Regular
            permissions: null
        Kyuro:
            group: Regular
            permissions: null
        DrViikT:
            group: Regular
            permissions: null
        TheLordofSonic:
            group: Regular
            permissions: null
        Hanta1000:
            group: Regular
            permissions: null
        MrHellsream:
            group: Regular
            permissions: null
        Pumadeace:
            group: Regular
            permissions: null
        KaiDTopo:
            group: Regular
            permissions: null
        BlobbionYoutube:
            group: Regular
            permissions: null
    Some Users have rights some dont.. we cant really get it to work so that every Regular does have the Regular rights : /

    yaml does not give out parse errors/ Q:http://yaml-online-parser.appspot.com/
     
  21. Offline

    nicke937

    Can some tell me why my group can't build in Zone2?
    Code:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'epiczones.Zone1.build.deny'
                - 'epiczones.Zone1.destroy.deny'
                - 'epiczones.Zone2.destroy'
                - 'epiczones.Zone2.build'
     
  22. Where is your world.yml located? Just under Plugin/Permissions/ here?
    Does it have the exact same name as your world? Case sensitive. I'm running Craft 677, perm 2.7, and worldedit works fine.
     
  23. Offline

    PierreLouis

    Finally got to updating my craftbukkit to find out that Niji had stopped...
    Thanks man!
     
  24. Offline

    Kerazene

    Does anyone know of a plugin I could pair with this to be able to change the group that a user belongs to in-game? (e.g /group user admins would change the user to the group "admins") Help would be hugely appreciated! Thanks! :)
     
  25. Offline

    TheRealKANi

  26. Offline

    ruben

    Everyone has admin for me... I really do not know why.
    So, everyone who joins, gets admin instantly, while I set the usergroup User to default.
    This is my config file.
    Please help me.
     
  27. Offline

    Sammy

    @rcjrrjcr , Can you give a little help

    I'm trying to implement the something like this:

    Code:
        @Override
        public void onPlayerJoin(PlayerJoinEvent event) {
            VocationHandler GH = new VocationHandler(plugin);
            Player p = event.getPlayer();
            plugin.Permissions.addUserPermission("world",p.getName(), "mining.set");
    When the player join the permission node "mining.set" doesn't get added to the world.yml file, is the method bugged ?

    Just another thing. is there a method to add players to the file ?
     
  28. Offline

    Chromana

    A permission of '*' gives ALL permissions to that user. Delete the '*' permissions from Default and Moderator and then they'll only have the permissions that you list.

    So they ARE in the default group, it's just that they have all commands available.
     
  29. Offline

    ruben

    Thank you!
     
  30. Offline

    Schlumpfpirat

    Permissions doesn't work for me at all.
    I downloaded the latest CraftBukkit, configurated the YML, tested on a website if the yml Code was correct, loaded the server up but nothing really happened.
    I ain't got no prefix, and no commands like /give
    I'm running permissions only atm.

    Any help?

    edit: no errorlog btw in console
     
  31. Offline

    kalner123456

Thread Status:
Not open for further replies.

Share This Page