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

    grapeman

    I'm in the default group and i can: warp (Warpz0r), use thor (craftbook) and kick people
     
  3. Offline

    Jeyge

    Damn, I didn't know how picky yml was. The missing permissions nodes from the users was causing it.
    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
            copies:
     
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'clearinventry.use'
                - 'commandbook.bans.isbanned'
                - 'commandbook.call'
                - 'commandbook.clear'
                - 'commandbook.give.infinite'
                - 'commandbook.give.stacks'
                - 'commandbook.give.stacks.unlimited'
                - 'commandbook.intro'
                - 'commandbook.kit.list'
                - 'commandbook.kit.kits.*'
                - 'commandbook.more'
                - 'commandbook.more.infinite'
                - 'commandbook.motd'
                - 'commandbook.msg'
                - 'commandbook.return'
                - 'commandbook.rules'
                - 'commandbook.spawn'
                - 'commandbook.teleport'
                - 'commandbook.say'
                - 'commandbook.say.me'
                - 'commandbook.spawn'
                - 'commandbook.whereami'
                - 'commandbook.whereami.compass'
                - 'commandbook.who'
                - 'commandbook.whois'
                - 'elevators.builder'
                - 'iConomy.rank'
                - 'minecartmania.commands.info'
                - 'minecartmania.commands.momentum'
                - 'minecartmania.commands.trucompass'
                - 'minecartmania.signs.*'
                - 'multiverse.list'
                - 'simplesign.edit'
                - 'simplesign.colour.*'
                - 'worldedit.navigation.unstuck'
                - 'warpz0r.compasshome'
                - 'warpz0r.compassreset'
                - 'warpz0r.compasswarp'
                - 'warpz0r.home'
                - 'warpz0r.list'
                - 'warpz0r.sethome'
                - 'warpz0r.warp'
                - 'worldguard.god'
                - 'worldguard.heal'    
        VIP:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'commandbook.barrage'
                - 'commandbook.rocket'
                - 'commandbook.shock'
                - 'commandbook.thor'
                - 'elevators.advancedbuilder'
                - 'simplesign.setowner'
                - 'simplesign.edit.all'
                - 'worldedit.navigation.jumpto'
                - 'worldedit.superpickaxe'
                - 'warpz0r.free.home'
                - 'warpz0r.free.sethome'
                - 'warpz0r.free.warp'
                - 'warpz0r.set'
                - 'warpz0r.worldwarp'
                - 'warpz0r.worldhome'
                - 'worldguard.stack'
                - 'worldguard.locate'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - VIP
            permissions:
                - 'commandbook.bans.*'
                - 'commandbook.clear.other'
                - 'commandbook.give.other'
                - 'commandbook.kick'
                - 'commandbook.mute'
                - 'commandbook.slap.other'
                - 'commandbook.teleport.other'
                - 'commandbook.weather'
                - 'commandbook.weather.thunder'
                - 'commandbook.whois.other'
                - 'elevators.advancedbuilder'
                - 'iConomy.access'
                - 'midibanks.can-create'
                - 'midibanks.can-use'
                - 'minecartmania.commands.clearstalledcarts'
                - 'minecartmania.commands.redraw'
                - 'minecartmania.commands.clearemptycarts'
                - 'minecartmania.commands.eject'
                - 'multiverse.portal.list'
                - 'worldedit.chunkinfo'
                - 'worldedit.clipboard.copy'
                - 'worldedit.clipboard.paste'
                - 'worldedit.clipboard.cut'
                - 'worldedit.clipboard.rotate'
                - 'worldedit.clipboard.flip'
                - 'worldedit.clipboard.save'
                - 'worldedit.clipboard.clear'
                - 'worldedit.history.undo'
                - 'worldedit.history.redo'
                - 'worldedit.region.set'
                - 'worldedit.region.replace'
                - 'worldedit.region.overlay'
                - 'worldedit.region.smooth'
                - 'worldedit.selection.pos'
                - 'worldedit.selection.hpos'
                - 'worldedit.selection.chunk'
                - 'worldedit.wand'
                - 'worldedit.wand.toggle'
                - 'worldedit.selection.expand'
                - 'worldedit.selection.contract'
                - 'worldedit.selection.shift'
                - 'worldedit.selection.size'
                - 'worldedit.analysis.*'
                - 'worldedit.snapshots.*'
                - 'worldedit.superpickaxe.area'
                - 'worldedit.tool.*'
                - 'worldedit.fill'
                - 'worldedit.fixlava'
                - 'worldedit.fixwater'
                - 'worldedit.extinguish'
                - 'worldguard.slay'
                - 'warpz0r.admin.clearhome'
                - 'warpz0r.free.removewarp'
                - 'warpz0r.remove'
                - 'warpz0r.warpto'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    #
    #
    #
    users:
        grapeman:
            group: Default
            permissions:
        anotheruser:
            group: Admins
            permissions:
    
     
  4. Offline

    grapeman

    Added the permissions: to each user (just left them blank), but a default user can still do everything
     
  5. Offline

    DeathQueen

    BLOCK_PLACE and BLOCK_DESTROY

    Would WorldGuard interfere with that?
     
  6. Offline

    Jeyge

    Not usually. That is just a file that isn't named correctly or perhaps not saved correctly. I would guess that same results might occur if the file is saved in anything but utf-8 although there should be an error in the log about that.

    Did you try the version I posted? There was one other change I made. Another thing to check would be to make sure you aren't running GroupManager too. Or running version 2.7.1 of the Permissions plugin. As for what I posted, I checked your version on my test machine and found the same problems you had. That was the result that fixed everything.

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

    Borito

    Hi

    I have a Problem with this Plugin.

    I have createt a new world. But in this my Users dont have Permissions. The world name ist "maze" and the config file is a 1:1 copy of the 1st world an has the name "maze.yml"

    Permissons: 2.7
    Bukkit: 766

    I hope you can help me :)

    Greets Borito
     
  8. Offline

    Mordith

    Heya,

    Just recently got a minecraft server going and I've managed my way through everything fairly easily until it has come to the setup of mcMMO, I have the newest version of permissions and I was wondering if anyone could take a look at it and give me some help.
    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'foo.*'
        Member:
            default: false
            info:
                prefix: '&5[&5Member&5]&f'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'iConomy.payment'
                - 'iConomy.list'
                - 'iConomy.rank'
                - 'mcmmo.skills.*'
                - 'mcmmo.ability.*'
        Moderator:
            default: false
            info:
                prefix: '&a&aModerator&a&f'
                suffix: ''
                build: true
            inheritance:
                -Member
            permissions:
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.jump'
                - 'essentials.back.ondeath'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.ban'
                - 'essentials.banip'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essentials.kickall'
                - 'essentials.jail.exempt'
                - 'essentials.invsee'
        Admins:
            default: false
            info:
                prefix: '&c&cAdmin&c&f'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'essentials.broadcast'
                - 'essentials.clearinventory.others'
                - 'essentials.clearinventory'
                - 'essentials.spawnmob'
                - 'essentials.burn'
                - 'essentials.ext'
                - 'essentials.kill'
                - 'essentials.ping'
                - 'essentials.backup'
                - 'essentials.unban'
                - 'essentials.unbanip'
                - 'essentials.jail.exempt'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.time'
                - 'essentials.tree'
                - 'essentials.bigtree'
                - 'essentials.god'
                - 'essentials.heal'
                - 'essentials.suicide'
                - 'essentials.unlimited'
                - 'essentials.weather'
                - 'essentials.thunder'
                - 'essentials.lightning'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'essentials.jump'
                - 'essentials.back.ondeath'
                - 'essentials.tp'
                - 'essentials.tphere'
                - 'essentials.ban'
                - 'essentials.banip'
                - 'essentials.mute'
                - 'essentials.kick'
                - 'essentials.kickall'
                - 'essentials.jail.exempt'
                - 'essentials.invsee'
    
    users:
        Mordithqt:
            group: Admins
            permissions:
                - '*'
        druiddan:
            group: Moderator
            permissions:
        SickVidya:
            group: Moderator
            permissions:
        Lorpselin:
            group: Member
            permissions:
     
  9. Offline

    Maxis010

    I'm getting tired of saying this
    YES YOU CAN
    So long as you declare an absolute permission (no * wildcard) you can subtract from ANYTHING

    If you can't then come to my server, I'll show you my permissions files and prove that you can subtract permissions from - '*'
     
  10. Offline

    Jeyge

    You didn't actually say what the problems were but I'm going to guess everyone has all permissions. Adding a space after the - in your Moderator inheritance should fix it though.
    Code:
        Moderator:
            default: false
            info:
                prefix: '&a&aModerator&a&f'
                suffix: ''
                build: true
            inheritance:
                - Member
    
     
  11. Offline

    Mordith

    Ah, yeah, must've done it in a hurry. I can't get McMMO to work, it loads up just peachy but players cant level up or use the skills.
     
  12. Offline

    Jeyge

    You didn't say if fixing that problem with your permissions fixed it but I can see that you didn't give anyone access to 'mcmmo.commands.ability'. This would prevent the ability use. Might even fix something else. First thing to check after making these 2 changes is if it works if you give them "mcmmo.*". If it doesn't, we know it is something with mcMMO. If granting them everything causes it to work, then start giving them the rest of the permissions until it starts working again.
     
  13. Offline

    XnenonCo

    here is my world.yml
    Show Spoiler
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    # Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    # If this file is for your default world (the one in server.properties) then you must
    # leave copies blank.
    # Example: copies: Derp - This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name. So if it is level-name: world then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document. Use only spaces. A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
    permissions:
    system: default
    copies:

    ##
    # AntiBuild is included with this. To disable a group from being able to build then
    # set the build: flag to false (build: false). If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    # To make a group inherit the permissions from another
    # group simply place the groups name in the "inheritance:" like so:
    #
    # Example:
    # inheritance:
    # - Default
    ##
    # All permissions including the asterisks must be placed in single quotes.
    # like so:
    #
    # - 'foo.bar'
    #
    # Otherwise errors will happen!
    ##
    # Globalized Permission settings:
    #
    # If a permission contains periods (.) you can denote a globalized parameter:
    #
    # - 'foo.*'
    #
    # This will allow you to use all general commands.
    #
    ##
    # Single Asterisk denotes all commands:
    #
    # - '*'
    # If you give a group this permissions, do not have the group inherit any permissions
    # from other groups. Any users assigned to this group should NOT be given any additional
    # permissions either.
    ##
    # To exempt a node use the - prefix like so:
    # - '-foo.bar'
    ##
    # prefix: and suffix: do not do anything on their own. You need another outside plugin
    # such as iChat or HeroChat in order for these to do anything.
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'foo.bar'
    - 'factions.participate'
    Moderator:
    default: false
    info:
    prefix: 'Mod'
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    - 'factions.create'
    - 'factions.manageSafeZone'

    ##
    # 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:
    XnenonCo:
    group: Admins
    permissions:

    but when i try to make a faction it says i dont have permission. anyone willing to help?
     
  14. Offline

    Jeyge

    Do you get any errors at all? I can't take a look at your permissions because they weren't in code tags so the correct spacing isn't there. Did everything load up correctly? Are you running GroupManager? Perhaps you have v2.7.1 of Permissions?
     
  15. Offline

    XnenonCo

    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: true
            inheritance:
            permissions:
                - 'foo.bar'
                - 'factions.participate'
        Moderator:
            default: false
            info:
                prefix: 'Mod'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'factions.create'
                - 'factions.manageSafeZone'
    
    ##
    # 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:
        XnenonCo:
            group: Admins
            permissions:
    there's the code, no i dont have group manager, and its v2.7.3

    oh and there were no errors just: you don't have permission.

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

    Jeyge

    There isn't anything wrong with your permissions file. I loaded it up fine in 2.7.3 and even loaded factions just to see it that works. Everything worked as expected. Are you sure there aren't any errors in your server.log? Could you post it?
     
  17. Offline

    XnenonCo

    server.log? is that the .lck?
     
  18. Offline

    omgneeq

    Any ideas why my subtraction isn't working, I tried it with simple commands too, ie commandbook.who, but I could still use this command as if nothing happened (yes, I reloaded permissions).
     
  19. Offline

    Jeyge

    Um, the command you are trying to remove is a command that you would only want to add.
    IE - you add that override if you want them to be able to destroy it.
     
  20. Offline

    Heliwr

    Have you removed yourself from ops.txt?
     
  21. Offline

    Mordith

    I've tried multiple versions of having 'mcmmo.commands.ability', 'mcmmo.*' and the other abilities/skills permission but I keep coming up dry, I set them in the members group, so I should inherit them in the admin group. I tried to use a /permissions commands also and didn't recognize me as an admin, perhaps my permissions is just broken?
     
  22. Offline

    Jeyge

    That could be but I would expect some errors to be listed in the server.log file. Are you getting any errors?
     
  23. Offline

    Mordith

    This is my log.
    Code:
    2011-05-12 20:38:39 [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.java:352)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.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.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
        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)
    2011-05-12 17:46:40 [INFO] [AutoSave] World Auto-Saving
    2011-05-12 17:46:40 [INFO] [AutoSave] World Auto-Save Complete
    2011-05-12 17:50:14 [SEVERE] java.net.SocketException: Connection reset by peer: socket write error
    2011-05-12 17:50:14 [SEVERE]     at java.net.SocketOutputStream.socketWrite0(Native Method)
    2011-05-12 17:50:14 [SEVERE]     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    2011-05-12 17:50:14 [SEVERE]     at java.net.SocketOutputStream.write(Unknown Source)
    2011-05-12 17:50:14 [SEVERE]     at java.io.DataOutputStream.writeByte(Unknown Source)
    2011-05-12 17:50:14 [SEVERE]     at net.minecraft.server.Packet33RelEntityMoveLook.a(SourceFile:34)
    2011-05-12 17:50:14 [SEVERE]     at net.minecraft.server.Packet.a(Packet.java:121)
    2011-05-12 17:50:14 [SEVERE]     at net.minecraft.server.NetworkManager.e(NetworkManager.java:96)
    2011-05-12 17:50:14 [SEVERE]     at net.minecraft.server.NetworkManager.d(NetworkManager.java:230)
    2011-05-12 17:50:14 [SEVERE]     at net.minecraft.server.NetworkWriterThread.run(SourceFile:90)
    2011-05-12 17:50:14 [INFO] Read timed out
    2011-05-12 17:50:14 [INFO] Mordithqt lost connection: disconnect.genericReason
    2011-05-12 17:50:15 [INFO] [AutoSave] World Auto-Saving
    2011-05-12 17:50:15 [INFO] [AutoSave] World Auto-Save Complete
    2011-05-12 18:33:22 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-12 18:33:22 [WARNING] **** NOT ENOUGH RAM!
    2011-05-12 18:33:22 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-05-12 18:33:22 [INFO] Loading properties
    2011-05-12 18:33:22 [INFO] Starting Minecraft server on
    2011-05-12 18:33:22 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
    2011-05-12 18:33:22 [INFO] Preparing level "island"
    2011-05-12 18:33:22 [INFO] Preparing start region
    2011-05-12 18:33:23 [INFO] Preparing spawn area: 40%
    2011-05-12 18:33:24 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-05-12 18:33:24 [INFO] [AutoSave] Server Version is Recommended Build 740
    2011-05-12 18:33:24 [INFO] [AutoSave] Loading config file
    2011-05-12 18:33:24 [INFO] [AutoSave] Version 1.3.0 is enabled: 512c9580-7d35-482e-bac9-94f17ed22c2d
    2011-05-12 18:33:25 [INFO] Loaded Essentials build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-12 18:33:25 [INFO] [HeroChat] HeroChat version 4.10.3 enabled.
    2011-05-12 18:33:25 [INFO] [HeroicDeath] 1.8.1.156 enabled.
    2011-05-12 18:33:27 [INFO] [iConomy] Logging is currently disabled.
    2011-05-12 18:33:27 [INFO] [iConomy] v5.0 (Eruanna) loaded.
    2011-05-12 18:33:27 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-05-12 18:33:27 [INFO] MCMACOMPAT r13
    2011-05-12 18:33:27 [INFO] McMyAdmin Compatibility Plugin version r13 started.
    2011-05-12 18:33:27 [INFO] [mcMMO] Permissions enabled.
    2011-05-12 18:33:27 [INFO] mcMMO version 1.0.07 is enabled!
    2011-05-12 18:33:27 [INFO] [Permissions] version [2.7.2] (Phoenix)  loaded
    2011-05-12 18:33:27 [INFO] [HeroChat] Permissions 2.7.2 found.
    2011-05-12 18:33:27 [INFO] [iConomy] hooked into Permissions.
    2011-05-12 18:33:28 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
    2011-05-12 18:33:28 [INFO] [Towny] Loading Error: Could not read world data 'island'.
    2011-05-12 18:33:28 [INFO] [Towny] Using: Permissions, iConomy
    2011-05-12 18:33:28 [INFO] [Towny] Version: 0.65 - Mod Enabled
    2011-05-12 18:33:28 [INFO] Done (0.565s)! For help, type "help" or "?"
    2011-05-12 18:34:07 [INFO] [AutoSave] AutoSaveThread Started: Interval is 300 seconds, Warn Times are 0
    2011-05-12 18:34:13 [INFO] null
    2011-05-12 18:34:13 [INFO] null
    2011-05-12 18:34:13 [INFO] null
    2011-05-12 18:34:13 [INFO] null
    2011-05-12 18:34:13 [INFO] [G] Mordithqt: hi
    2011-05-12 18:34:17 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
     
  24. Offline

    omgneeq

    Yes, but by being in the admins group aren't they granted this with the wildcard, then this should promptly remove that permission? Should this not effectively say 'everything except worldedit.override.bedrock'?
     
  25. Offline

    Jeyge

    :( That error would have been very helpful. Your permissions.yml file probably isn't named <world name>.yml or it isn't in the permissions directory. Make sure it is named correctly and in the right place and I'll bet everything will start working.

    I just gave it a try and it does override it just the way you wrote it. I'm guessing your permissions aren't working either. Are you getting any errors in your log? Are you running GroupManager? How about your permissions yml file?

    Edit - did you remove yourself from the ops.txt file?

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

    omgneeq

    No errors in the log and I am not using GroupManager, my permissions yml is in my first post, but I'll put it here again.

    ops.txt:
    Code:
    [mc@au2 mcserver]# cat ops.txt
    omgneeq
    server.log:
    Code:
    2011-05-13 02:18:24 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-13 02:18:24 [INFO] Loading properties
    2011-05-13 02:18:24 [INFO] Starting Minecraft server on *:25565
    2011-05-13 02:18:24 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02)
    2011-05-13 02:18:24 [INFO] Preparing level "world"
    2011-05-13 02:18:24 [INFO] Preparing start region
    2011-05-13 02:18:25 [INFO] Preparing spawn area: 81%
    2011-05-13 02:18:26 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-05-13 02:18:27 [INFO] DataSourcePool [MinecartManiaCore] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-13 02:18:27 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-13 02:18:27 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-13 02:18:27 [INFO] DataSourcePool [MinecartManiaSignCommands] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-13 02:18:27 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-13 02:18:28 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-13 02:18:28 [INFO] CommandBook 1.5.1 enabled.
    2011-05-13 02:18:28 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-05-13 02:18:28 [INFO] CommandBook: 1 kit(s) loaded.
    2011-05-13 02:18:28 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-13 02:18:28 [INFO] [Permissions] version [2.7.3] (Phoenix)  loaded
    2011-05-13 02:18:28 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-13 02:18:28 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-13 02:18:28 [INFO] WorldGuard: (world) Single session is enforced.
    2011-05-13 02:18:28 [INFO] WorldGuard: (world) TNT ignition is PERMITTED.
    2011-05-13 02:18:28 [INFO] WorldGuard: (world) Lighters are PERMITTED.
    2011-05-13 02:18:28 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-05-13 02:18:28 [INFO] WorldGuard: (world) Fire spread is UNRESTRICTED.
    2011-05-13 02:18:28 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-05-13 02:18:28 [INFO] WorldGuard 5.0-alpha10 enabled.
    2011-05-13 02:18:28 [INFO] [MagicCarpet] MagicCarpet version 1.5.5 is enabled!
    2011-05-13 02:18:28 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    2011-05-13 02:18:28 [INFO] [MagicCarpet] Using Permissions.
    2011-05-13 02:18:28 [INFO] WorldEdit 4.4 enabled.
    2011-05-13 02:18:28 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-13 02:18:28 [INFO] [Minecart Mania] Debug mode switched to NORMAL
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaCore version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] [Minecart Mania] Permissions detected. Using permissions.
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaAdminControls version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaChestControl version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaAutomations version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaAutocart version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaSignCommands version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] [Minecart Mania] MinecartManiaStation version 1.2.2 is enabled!
    2011-05-13 02:18:28 [INFO] Done (0.402s)! For help, type "help" or "?"
    world.yml:
    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'bar.foo'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        omgneeq:
            group: Admins
            permissions:
                - '-worldedit.override.bedrock'
    Really has me stumped.
     
  27. Offline

    Heliwr

    So far as I know, ops.txt trumps permissions for most plugins. Remove yourself from ops.txt if you want to remove permissions from yourself.
     
  28. Offline

    Jeyge

    Remove yourself from ops.txt. Permissions really doesn't work right when you are an op.
     
  29. Offline

    Dragonntiger

    alright i've added more spaces, still my friend gets denied access to command? :confused:
     
  30. Offline

    omgneeq

    I see, I did not know of this, removing myself from ops.txt seems to fix it, thanks.
    But this poses another problem, now I cannot build within spawn zone for instance, is there a middle ground here?
     
  31. Offline

    Mordith

    Doh, I had that done actually but what I had forgotten is to set the server properties to the world. Thought, I haven't had the permissions file in the directory until I actually read it thoroughly. Thanks man, I appreciate it and forgive my idiocy.
     
Thread Status:
Not open for further replies.

Share This Page