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

    vfern_fern

    Nvm it was only working properly when I changed my group but not anyone else. Here is my code again:

    Now I noticed something, when I run all of this through the yml parser, it says something different under monty0526 than everyone else. I am not sure, because she hasn't been on, but I think she may very well be set.

    So I copied all of her user info, repasted it under her's and changed the user name to the_dave123.

    I deleted the other the_dave123 user and then I ran it through the parser. It says I got an error in line 14 and where it says the dave.

    Anyone want to tell me if you see something or if the same error is gotten by you?

    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
            permissions:
        floran98:
            group: Miner
            permissions:
                - 'essentials.balance'
                - 'essentials.depth'
        igmarx:
            group: Miner
            permissions:
        Kelthagas:
            group: Miner
            permissions:
     
  3. Offline

    Jeyge

    If you mean
    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'
    those commands, then they don't work because you removed your access to them by adding the -<command name> to your permissions.yml file. If you want to be able to use those, then delete those lines and just let the '*' give you everything.

    I'm not sure I understand. Are you saying that it worked 1 time then when you changed something it stopped working?

    As for the file, everything looks fine and I ran it thru 2 parsers.

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

    westyman1904

    so... i have everything working now, except for the fact that it wont change my group. when i type something even though ive put me as the "owner" group, it has the prefix guest. im not sure if this has something to do with ichat or permissions. please help, ty for reading and possibly helping

    Edit:
    it doesnt give me the commands ive been slaving over for hours for either
     
  5. Offline

    Latros

    I am getting a critical error that crashes our server every time I do a /permissions -reload world, and every time my server starts up.

    Here are the errors, and my world.yml

    Error on startup:

    Code:
    2011-04-28 23:19:52 [SEVERE] java.lang.Integer cannot be cast to java.lang.String initializing Permissions v2.7 (Is it up to date?)
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    	at com.nijiko.permissions.Control.load(Control.java:215)
    	at com.nijiko.permissions.Control.load(Control.java:130)
    	at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:174)
    	at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:145)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:88)
    	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)
    Error when I attempt to do "/permissions -reload world" (which crashes the server);

    Code:
    2011-04-28 23:19:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'permissions' in plugin Permissions v2.7
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
        at com.nijiko.permissions.Control.load(Control.java:215)
        at com.nijiko.permissions.Control.forceLoadWorld(Control.java:114)
        at com.nijiko.permissions.Control.reload(Control.java:93)
        at com.nijikokun.bukkit.Permissions.Permissions.onCommand(Permissions.java:265)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more

    Pastebin of my world.yml:
    http://pastebin.com/raw.php?i=s45k3y1B

    Bukkit version & permissions verson;
    b733 (recommended)
    most recent permissions
     
  6. Offline

    vfern_fern

    Alright there is no one in my op.txt, not even me. Everything works for me. I can /spawn, /time, /weather, /item etc. (i am not sure about /reload though)

    but when i play with a friend we both cannot destroy anything or place blocks. he can't even read his mail.
     
  7. Offline

    Jeyge

    Oh, my. That is quite the file. Give this version a try. I'm not sure how the inheritance will work but your spacing was a bit off on all of your permissions. You needed 4 more spaces.

    Edit - and put the person with only numbers for their name in ''. Those are single ticks btw.

    Are you playing on the same server both times? Did you try to destroy blocks when you are alone? You just say that some of the commands worked but not anything else. And do either you or your friend have client mods/texture packs?

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

    westyman1904

    can you give my problem a shot? i am not in the group im supposed to be in... i says im a guest, along with everyone else. and i dont know how to upload my .yml if you tell me how to do that :p
     
  9. Offline

    Jeyge

    Post your file again as I'm guessing it isn't the same as it was earlier.
     
  10. Offline

    westyman1904

    how do i post my file xD and no its all working now just that little glitch
     
  11. Offline

    Jeyge

    Pastebin.com or put it in CODE tags.
     
  12. Offline

    westyman1904

    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'essentials.help'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.spawn'
                - 'essentials.msg'
                - 'essentials.r'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.list'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Citizen
            permissions:
                - 'essentials.ban'
                - 'essentials.kick'
                - 'essentials.banip'
                - 'essentials.unban'
                - 'essentials.unbanip'
                - 'essentials.togglejail'
                - 'essentials.weather'
                - 'essentials.thunder'
                - 'essentials.tp'
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                -Moderator
            permissions:
                - 'essentials.protect.exemptplacement'
                - 'essentials.protect.exemptusage'
                - 'essentials.protect.admin'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.time'
                - 'essentials.god'
                - 'essentials.heal'
                - 'essentials.unlimited'
                - 'essentials.lightning'
                - 'essentials.invsee'
                - 'essentials.kill'
                - 'essentials.ext'
                - 'essentials.burn'
                - 'essentials.clearinventory'
                - 'essentials.spawnmob'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.setspawn'
                - 'essentials.tphere'
                - 'essentials.all'
                - 'essentials.depth'
                - 'essentials.getpos'
                - 'essentials.compass'
                - 'essentials.top'
                - 'essentials.jump'
                - 'essentials.back'
                - 'essentials.sign.protection.override'
                - 'essentials.sign.free.create'
                - 'essentials.sign.free.use'
                - 'essentials.sign.disposal.create'
                - 'essentials.sign.heal.create'
                - 'essentials.*'
        Owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
        Citizen:
            defualt: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Guest
            permissions:
                - 'essentials.signs.disposal.use'
                - 'essentials.me'
                - 'essentials.helpop'
                - 'essentials.whois'
                - 'essentials.protect'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'essentials.signs.protection.create'
                - 'essentials.signs.protection.use'
                - 'essentials.signs.heal.use'
    Users:
        westyman1904:
            Group: Owner
            permissions:
        thefurey:
            Group: Admin
            permissions:
        sheep:
            Group: Moderator
            permissions:
    
    
    i guess ill do it like this
    Edit: o wow i didnt see the upload file button *facepalm*
     
  13. Offline

    Jeyge

    It is "users" and not "Users".

    Also, make sure you reply to a post so the person gets a notification. That way you won't have to wait for us to stumble across the post. :)
     
  14. Offline

    westyman1904

    ok thank you a ton :D

    Edit: ugh it actually didnt work lol
     
  15. Offline

    LucidLethargy

    Permissions 2.7.2 has completely failed to operate correctly on my server (previously it was working perfectly on 2.7.)
    I'm attempting to downgrade to 2.7.1... hopefully it works or I will need to bother everyone on my server again for an unscheduled restart.
     
  16. Offline

    vfern_fern

    Yup! We only have 1 server and none of know squat about computers except the power button, moving the mouse, and cursors lol

    Okay so when no one is opped and I play alone I cannot place blocks or destroy them. I have ALL commands except /reload -- I believe it is the essentials version of /permission -reload. The error says: You do not have sufficient access to reload the server.

    I am also not using the localhost ummm ip? To play on our server. I am using the dns service.

    I do have a tp and I updated it with the update! (it's Mixcraft)! I am trying it right now to see if what I just said still happens. without the tp:

    Everything still happens. I also changed the coding to this and it still happens:

    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
            info:
                prefix: ''
                suffix: ''
            permissions:
                - 'essentials.balance'
                - 'essentials.depth'
        igmarx:
            group: Miner
            info:
                prefix: ''
                suffix: ''
            permissions:
        Kelthagas:
            group: Miner
            info:
                prefix: ''
                suffix: ''
            permissions:
    The reason why I changed it was because I noticed on a parser that it said under my username (vfern005) that I was under group admins, but it did not say my other users group underneath.
     
  17. Offline

    Latros

    Thank you Jeyge - your response combined with me taking a look at Yeti's bugtracker showed me that users with all #s for names have to have '' around them, or it causes the errors and crashing I was getting. 100% fixed now, thank you!
     
  18. Offline

    LucidLethargy

    I have just lost all control of Permissions after updating, then reverting... This is really not good... Error message as follows:

    I am on 733 and I have done everything right a far as I know... the update to 2.7.2. has simply borked operations even after downgrading... I can only imagine my config was changed and no longer works with previous versions?

    Edit: I restored from a backup and everything is fine... I'm definitely weary to update this plugin again, though... Please test the builds or release them as "untested" in the future! Hope my info helps, as always this plugin defines just about everything, so thank you for all your effort in maintaining things!
     
  19. Offline

    Atheri

    I've seen this problem presented alot but I can't seem to find the answer. I've included the error and my .yml file if anyone could help me out. Also, I don't have craftbook :p

    Show Spoiler
    Code:
    [Lnet.minecraft.server.Statistic;@587c94
    146 recipes
    [Lnet.minecraft.server.Statistic;@587c94
    16 achievements
    23:38:29 [INFO] Starting minecraft server version Beta 1.5_02
    23:38:29 [INFO] Loading properties
    23:38:29 [INFO] Starting Minecraft server on *:25565
    23:38:29 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-700-
    gf3ae4c3-b733jnks (MC: 1.5_02)
    23:38:29 [INFO] Preparing level "world"
    23:38:29 [INFO] Preparing start region
    23:38:30 [INFO] [Permissions] (Phoenix) was Initialized.
    23:38:30 [INFO] [Permissions] version [2.7.2] (Phoenix)  loaded
    23:38:30 [INFO] Done (0.053s)! For help, type "help" or "?"
    23:38:34 [INFO] Atheri [/75.35.136.55:55584] logged in with entity id 72
    23:38:38 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.j
    ava:352)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:74)
            at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:519)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    Show Spoiler
    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
                build: true
            permissions:
                - '*'
    users:
        sirjamesofthayer:
            group: Admins
            permissions:
        Atheri:
            group: Admins
            permissions:
     
  20. Offline

    Jeyge

    What was the new problem?

    So if I understand correctly, all of the commands work but you just can't build? If this is correct, check if you have spawn protection turned on and if you are close to the spawn point. If that is correct, then move away from the spawn and try to build there.

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

    Zerco

    Going to guess this is your problem:
    Code:
    Admin:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
         -Moderator
            permissions:
                - 'essentials.protect.exemptplacement'
                - 'essentials.protect.exemptusage'
                - 'essentials.protect.admin'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.time'
                - 'essentials.god'
                - 'essentials.heal'
                - 'essentials.unlimited'
                - 'essentials.lightning'
                - 'essentials.invsee'
                - 'essentials.kill'
                - 'essentials.ext'
                - 'essentials.burn'
                - 'essentials.clearinventory'
                - 'essentials.spawnmob'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.setspawn'
                - 'essentials.tphere'
                - 'essentials.all'
                - 'essentials.depth'
                - 'essentials.getpos'
                - 'essentials.compass'
                - 'essentials.top'
                - 'essentials.jump'
                - 'essentials.back'
                - 'essentials.sign.protection.override'
                - 'essentials.sign.free.create'
                - 'essentials.sign.free.use'
                - 'essentials.sign.disposal.create'
                - 'essentials.sign.heal.create'
                - 'essentials.*'
    
    You overloaded this group by defining every essentials node separately, then giving it - 'essentials.*' take out everything so it looks like this instead, you'll also need to remove the extra inherited essential nodes by getting rid of the inheritance itself:
    Code:
    Admin:
        default: false
        info:
            prefix: ''
            suffix: ''
            build: true
        inheritance:
        permissions:
        - 'essentials.*'
    
    
     
  22. Offline

    westyman1904

    its actually the same one... im still a guest. any other ideas
     
  23. Offline

    Jeyge

    You have 1 problem with that permissions.yml file. Your "build: true" on the Admins node is spaced over 2 extra spaces. But that most likely won't fix your problem. The underlying error is most likely caused by your .yml file not being named <world>.yml in the permissions directory.

    Well, another interesting one. Not only was Users incorrect but there are 3 Groups in the users section that should be groups.

    I think I might just write a parser for these files and add every error I come across to make this easier. :)

    That should get you going though.

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

    westyman1904

    so everything has to be lowercase?

    Edit: YAY! it works :D ty so much!
     
  25. Hello I need to insert different "Permissions " users from my website, so from a phpscript!

    Do you have a script to add (in php) line kind permission "- '*'" to a specific user?

    Important to help me thank you!
     
  26. Offline

    Meth0s

    you don't have Permissions to do this???
     
  27. Offline

    [qwerty]

    why do i keep geting:
    "could not pass event block break to permissions"

    it keeps spamming "you do not have permission for this area" to my server members even when i gave them access or there are no regions defined in that area what so ever!!!

    i think its because of the permissions glitch
     
  28. Offline

    Starlight

    How do I do this? I want new players to not build until they are recruited.. But a area that is free for all would be great.. How do I set that up?

    --
    I'm installing iChat and PermissionsPlus now.. Already got MOTD
     
  29. Offline

    Pingoo

    You just rename RENAME-ME in "world" (based on the name of your world).You must be in a group where build = true
     
  30. Offline

    [qwerty]

    its named world.yml will that work
    edit:
    ---
    plugin:
    permissions:
    system: 'default'
    copies: ''
    groups:
    Admin:
    default: ''
    info:
    prefix: '[Admin]'
    suffix: ''
    build: true
    inheritance: ''
    permissions:
    - '*'
    Moderator:
    default: false
    info:
    prefix: '[Moderator]'
    suffix: ''
    build: true
    inheritance:
    - 'VIP'
    permissions:
    - 'commandbook.item'
    - 'commandbook.tp.other'
    Owner:
    default: ''
    info:
    prefix: '[Owner]'
    suffix: ''
    build: true
    inheritance: ''
    permissions:
    - '*'
    Player:
    default: ''
    info:
    prefix: '[Player]'
    suffix: ''
    build: true
    inheritance: ''
    permissions: 'commandbook.kit.starter'
    VIP:
    default: ''
    info:
    prefix: '[VIP]'
    suffix: ''
    build: true
    inheritance:
    - 'Player'
    permissions: ''
    users:
    chrishill:
    group: 'Owner'
    permissions: ''
    jamacanmonkeymon:
    group: 'VIP'
    permissions: ''
    nateydog:
    group: 'Moderator'
    permissions: ''
     
  31. Offline

    magga

    How do I fix the users group. I put myself as an admin but i cant use wrath strike it says I dont have permission
    groups:
    Immigrant:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    permissions:
    - 'foo.bar'
    Citizen:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Immigrant
    permissions:
    - 'bar.foo'
    Noble:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Citizen
    permissions:
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    - 'wrath.*'
    - 'wrath.strike'
    ##
    # 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:
    magga:
    group: Admins
    permissions:
    Xerro:
    group: Citizen
     
Thread Status:
Not open for further replies.

Share This Page