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

    William Hall

    what are the commands?
     
  3. Offline

    PhantomGamers

    The commands are:
    Code:
    
    
     
  4. my permission file is really weird and doesn't work anymore i don't know why because it has always worked i don't know how ta add a file so if you want to help me (please help) tell me how to add file ty

    ps. srry for the bad english
     
  5. Offline

    fitofinsanity

    You need a space between default:true under your Default group e.g. default: true
     
  6. Offline

    XXLPaprika

    Code:
    groups:
        User:
            default: true
            info:
                prefix: '&7'
                suffix: ''
                build: false
            inheritance:
            permissions:
    
        Trialmember:
            default: false
            info:
                prefix: '&c'
                suffix: ''
                build: true
            inheritance:
                - User
            permissions:
                - 'general.spawn'
                - 'magiccarpet.mc'
                - 'general.clear'
                - 'general.away'
                - 'general.playerlist'
                - 'general.who'
                - 'lwc.protect '
                - 'war.warp'
                - 'war.player'
                - 'wormhole.use.dialer'
                - 'wormhole.list'
                - 'JumpBlock.Invincibility'
                - 'JumpBlock.Use'
                - 'multiverse.tp'
    
        Member:
            default: false
            info:
                prefix: '&6'
                suffix: ''
                build: true
            inheritance:
                - Trialmember
                - User
            permissions:
                - 'JumpBlock.Create'
                - 'supplysign.access'
    
        V.I.P:
            default: false
            info:
                prefix: '&2'
                suffix: ''
                build: true
            inheritance:
                - Member
                - Trialmember
                - User
            permissions:
                - 'nocheat.moving'
                - 'nocheat.speedhack'
                - 'general.teleport'
    
        Moderator:
            default: false
            info:
                prefix: '&5'
                suffix: ''
                build: true
            inheritance:
                - User
                - Trialmember
                - Member
                - V.I.P
            permissions:
                - 'bar.foo'
                - 'nocheat.notify'
                - 'nocheat.speedhack'
                - 'nocheat.moving'
                - 'nocheat.airbuild'
                - 'nocheat.bedteleport'
                - 'general.time'
                - 'general.time.set'
                - 'general.teleport.here'
                - 'general.clear.other'
                - 'general.heal'
                - 'general.time'
                - 'general.spawn.other'
                - 'general.teleport'
                - 'general.items'
                - 'lwc.mod'
                - 'wormhole.build'
    
        Admin:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
        Co-Leader:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
        Leader:
            default: false
            info:
                prefix: '&1'
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
     
    # Prefixcolors:
    # &0     Black
    # &1     Dark Blue
    # &2     Dark Green
    # &3     Dark Teal
    # &4     Dark Red
    # &5     Purple
    # &6     Gold
    # &7     Gray
    # &8     Dark Gray
    # &9     Blue
    # &a     Bright Green
    # &b     Teal
    # &c     Red
    # &d     Pink
    # &e     Yellow
    # &f     White
    ##
    
    users:
        XXLPaprika:
            group: Leader
            permissions: 
    That's my config file, but ingame it tells me that i don't have the permission to do several Commands.
     
  7. Offline

    Ninjaii

    EDIT: FIXED THE PROBLEM. It was a syntax error!
     
  8. Offline

    William Hall

    what? there are no commands there?
     
  9. Offline

    hAvAAck

    Hi All,

    So maybe I'm confused as to what permissions allows me to do. I want to create title colors, or prefixes, that type of thing in permissions. Can I do that with the prefix area, or do I need another plugin to read the prefix area?

    for instance, I just want admin names to be red, mods to be blue, or whatever. Can I do that with permissions or do I need something else?
     
  10. Offline

    PhantomGamers

    Exactly... all this plugin does is provide a permission system for other plugins... what commands could there possibly be?

    You *can* do that in Permissions, but you need to use another plugin for colors.
    I use iChat...
     
  11. Offline

    hAvAAck

    I searched iChat it said it was inactive. Can I set prefixes without colors? Whenever I type them in, it fails to put them in chat..

    nevermind, I got it
    Thanks!
     
  12. Offline

    PhantomGamers

    hAvAAck likes this.
  13. Offline

    Splox982

    Hey guys Ive got an error and i looked through these last few pages and havent found anything similar. I think its with permissions but i'm not sure?

    Here is the error file, scroll down to the bottom and you will see the ONPLAYERJOIN error.
    Disregard the MyWarp Error I am aware of that one.
    http://pastebin.com/Ery50zMd

    Also here is my permissions file.
    http://pastebin.com/FxejGQSy

    I examined it for tabs or missing quotes but I cant find anything.

    Thanks in Advance!

    -Tom
     
  14. Offline

    Rsage1

    it still says the same...
     
  15. Offline

    Zerco

    You overloaded your Admin/Builder/Mod group, for Admin either get rid of the "- *" or get rid of everything below it. Otherwise Admins won't be able to do anything. As for Builder/Mod you need to get rid of the duplicates that carry over with inheritance. Or just get rid of the inheritance period.

    Edit2: You're missing the " : " at the end of your Default group before the line default: true

    Edit: This only fixes your in-game permissions I'm looking over the console one.-- See above edit

    It looks like:
    Code:
    [SEVERE] Could not pass event PLAYER_JOIN to MCDocs
    
    Would be where the problem comes in and then it tries to pass it to Permissions which it can't do because of the above error. Try checking for an updates MCDocs.

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

    Rsage1

    Wow you are my god! THX so much!

    Edit: well now im at it and you seem like a so called master at this so...
    The console said that i needed to download two things
    1. http://stethoscopesmp.com/tkelly/lib/sqlite.jar
    2. http://stethoscopesmp.com/tkelly/lib/win-x86.lib
    I could figure that i needed to download sqlite for the first but.. whats the second? (my last error!!!)

    Nope i found out :) Sorryy :D
     
  17. Offline

    Psycho Robot

    I believe he's being facetious, i.e. "its blanc cuz der r no commands lololoololol". Unfortunately for his dignity, he is dead wrong. Do the command "/pr" in-game and it will explain the syntax for the commands.
     
  18. Offline

    ssechaud

    v2.7.2

    20:59:13 [SEVERE] Could not load 'plugins/Permissions.jar' in folder 'plugins': author is of wrong type
    org.bukkit.plugin.InvalidDescriptionException: author is of wrong type
    at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:209)
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:30)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:63)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  19. Offline

    magga

    When I put the yml in the parser I keep getting "while scanning for the next token
    found character '\t' that cannot start any token"
     
  20. Offline

    Jeyge

    Download the most recent release. It should fix that problem.

    You have a tab in your file somewhere. Replace it with 4 spaces and you should be fine.
     
  21. Offline

    TBleader

    This does not work for me, or something. I renamed the .yml file to 'World1' (The name of the world my server uses), and I added my name in the file and added some permissions for the MultiVerse mod or whatever it's called, but it doesnt work. I added a prefix in the file to see if it works which doesn't show. None of the commands that should be working do. In the console is says
    Code:
    Fake Permissions version 2.5.1 loaded!
    . . . (I don't want to type all the stuff in between)
    [MultiVerse]Permissions Found
    . . .
    Fake Permissions version 2.7.2 loaded!
    
    Any reason as too why it says it two times, but as different versions, and as to why it doesn't work either way?
     
  22. Offline

    ElementalBliss

    This was odd - I tested myself with users but now, as it is - it keeps giving me a format error, when I'm sure it's not. Here is mine.

    Code:
    plugin:
        permissions:
            system: 'default'
            copies: ''
    groups:
        Guest:
            default: 'true'
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance: ''
            permissions: ''
        User:
            default: 'false'
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: ''
            permissions:
                - 'lockette.user.create.*'
                - 'giftpost.chest.everywhere'
                - 'giftpost.chest.open'
                - 'giftpost.chest.empty'
                - 'giftpost.chest.send'
                - 'giftpost.chest.upgrade'
                - 'shelfspeak.read'
                - 'shelfspeak.write'
                - 'shelfspeak.colors'
                - 'shelfspeak.lock.*'
                - 'mcmmo.motd'
                - 'mcmmo.regeneration'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.commands.ability'
                - 'mcmmo.commands.ptp'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.ability.herbalism'
                - 'mcmmo.skills.*'
        Mod:
            default: 'false'
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - 'User'
            permissions:
                - 'lockette.admin.create.*'
                - 'lockette.admin.break'
                - 'lockette.admin.bypass'
                - 'lockette.admin.snoop'
        Admin:
            default: 'false'
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        ElementalBliss
            group: 'Admin' <-- I GET THE ERROR HERE
            permissions: ''
    And upon removing the error [the colon in group:] it parses correctly online.
    Edit: Using CB 733. I will list my plugins if I must, but it only errored out after I edited the users.
     
  23. Offline

    Jeyge

    Why are you trying to run Fake Permissions with Permissions? Fake Permissions is the plugin that GroupManager uses to pretend to be Permissions. I would remove that and see if it fixes things.
    You missed a colon after the user ElementalBliss. It should be "ElementalBliss:".
     
  24. Offline

    TBleader

    When I delete GroupManager it throws tonnes of errors at the console.
     
  25. Offline

    Jeyge

    And those errors would be?
     
  26. Offline

    Starlight

    1. Is there a way to give recruiters simple tools to recruit new players, so they can build on my server withous having to type advanced commands (joining players are not able to build on my server by default)?

    2. Is there a way to get the command list working properly when someone types /help? I need all available commands listed..

    3. Also I need prefixes to nicknames and color.. Why is this not in this Plugin.. It should be..! :-(

    Great work on this Plugin though..! :)
     
  27. Offline

    ElementalBliss



    Oh.. well damn. A colon threw everything out of whack. Thanks!
     
  28. Offline

    TBleader

    Hmm I fixed the errors, but can you tell my why my settings are not working? Or should I post in the multiverse thread.
    Code:
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - '-multiverse.world.create'
                - '-multiverse.world.import'
                - '-multiverse.world.remove'
                - '-multiverse.world.list'
                - '-multiverse.tp'
                - '-multiverse.world.setspawn'
                - '-multiverse.world.spawn'
                - '-multiverse.portal.create'
                - '-multiverse.portal.remove'
                - '-multiverse.portal.select'
                - '-multiverse.portal.destination'
                - '-multiverse.portal.rename'
                - '-multiverse.portal.list'
    
    . . .
    users:
        TBleader:
            group: Admins
            info:
                prefix: 'God'
            permissions:
    
     
  29. Offline

    vfern_fern

    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:
                - 'essentials.msg'
        Miner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.signs.mail.use'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.signs.disposal.use'
                - 'essentials.signs.heal.use'
                - 'essentials.signs.sell.create'
                - 'essentials.signs.sell.use'
                - 'essentials.worth'
                - 'essentials.sell'
                - 'essentials.pay'
                - 'essentials.msg'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.list'
                - 'essentials.mail.send'
                - 'essentials.helpop'
                - 'essentials.kit'
                - 'essentials.kit.tools'
                - 'essentials.tptoggle'
        ShopManager:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Miner
            permissions:
                - 'essentials.signs.protection.create'
                - 'essentials.signs.protection.use'
                - 'essentials.balance'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - ShopManager
            permissions:
                - 'essentials.help'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'essentials.signs.protection.create'
                - 'essentials.signs.protection.use'
                - 'essentials.signs.protection.override'
                - 'essentials.signs.disposal.create'
                - 'essentials.signs.disposal.use'
                - 'essentials.signs.heal.create'
                - 'essentials.signs.heal.use'
                - 'essentials.signs.buy.create'
                - 'essentials.signs.buy.use'
                - 'essentials.teleport.cooldown.bypass'
                - 'essentials.teleport.timer.bypass'
                - 'essentials.tp'
                - 'essentials.tpohere'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essemtials.kickall'
                - 'essentials.togglejail'
                - 'essentials.jail.exempt'
        Admin:
            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:
        vfern005:
            group: Admin
            info:
                prefix: 'Admin'
                suffix: ''
            permissions:
        monty0526:
            group: Miner
            info:
                prefix: ''
                suffix: ''
            permissions:
        the_dave123:
            group: Miner
            info:
                prefix: ''
                suffix: ''
            permissions:
        floran98:
            group: Miner
            permissions:
                - 'essentials.balance'
                - 'essentials.depth'
        igmarx:
            group: Miner
            permissions:
        Kelthagas:
            group: Miner
            permissions:
    Everyone is oped, but everyone has all the commands. I am using essentials, and craftbukkit 733. I am not sure if I typed something wrong, or I am forgetting something but on an online yaml parser it says nothing is wrong
     
  30. Offline

    Jeyge

    That depends on what isn't working.
    Giving everyone OP is like giving them all Admin. If you don't want them doing everything, you will have to remove them from the OP list.
     
  31. Offline

    vfern_fern

    Hu. I thought they had to be oped to do these things.

    So they can be unoped and still have the Miner class?

    EDIT:
    I tried deoping one of my friends and he is in the miner class, and he can't destroy anything. Is it maybe because I have spawn protection?
     
Thread Status:
Not open for further replies.

Share This Page