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

    Jeyge

    What part of it doesn't work? Are you getting an error?

    Well, we can try again but you aren't very forthcoming when it comes to answering my questions. Can I have a server.log, your permissions file, who it isn't working for, what error message they are getting and what commands they are trying to do?

    I can't see anything wrong with what you typed there but I'm having to assume you have the spacing correct and all that. Could you post the whole file that doesn't work and your server.log?

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

    _fluffy

    well i dont get an error and it says it initialized properly but when i get in game, i dont have a prefix, suffix, and i cant use any commands. it doesnt even act like the plugin is on
     
  4. Offline

    Jeyge

    What other plugins are you running? Are you getting a BLOCK_PLACE or BLOCK_BREAK error when you try to build or destroy in the game? Are you running v2.7.1 of Permissions? Have you checked to make sure your permissions file name is <world name>.yml? Could I see your server.log?
     
  5. Offline

    _fluffy

    got rid of the other plugins to find the problem. no block place or break errors. have th latest version and have it named as world2.yml
    Code:
    2011-05-09 22:08:58 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-09 22:08:58 [INFO] Loading properties
    2011-05-09 22:08:58 [INFO] Starting Minecraft server on *:25565
    2011-05-09 22:08:58 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
    2011-05-09 22:08:58 [INFO] Preparing level "world2"
    2011-05-09 22:08:58 [INFO] Preparing start region
    2011-05-09 22:08:59 [INFO] Preparing spawn area: 89%
    2011-05-09 22:08:59 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-05-09 22:08:59 [INFO] [Permissions] version [2.7.2] (Phoenix)  loaded
    2011-05-09 22:08:59 [INFO] Done (0.138s)! For help, type "help" or "?"
    2011-05-09 22:09:24 [INFO] PenguiBear [/192.168.0.10:57107] logged in with entity id 134
    2011-05-09 22:09:27 [INFO] <PenguiBear> k
    2011-05-09 22:09:39 [INFO] PenguiBear tried command: help
    2011-05-09 22:09:47 [INFO] PenguiBear tried command: spawn
    2011-05-09 22:09:52 [INFO] PenguiBear tried command: sethome
    2011-05-09 22:13:02 [INFO] PenguiBear lost connection: disconnect.quitting
    2011-05-09 22:13:02 [INFO] Connection reset
    2011-05-09 22:24:39 [INFO] PenguiBear [/192.168.0.10:57122] logged in with entity id 3981
    2011-05-09 22:24:49 [INFO] PenguiBear lost connection: disconnect.quitting
    2011-05-09 22:24:49 [INFO] Connection reset
    2011-05-09 23:05:27 [INFO] Stopping the server..
    2011-05-09 23:05:27 [INFO] CONSOLE: Stopping the server..
    2011-05-09 23:05:27 [INFO] Stopping server
    2011-05-09 23:05:27 [INFO] [Permissions] (Phoenix) saved all data.
    2011-05-09 23:05:27 [INFO] [Permissions] (Phoenix) disabled successfully.
    2011-05-09 23:05:27 [INFO] Saving chunks
    2011-05-09 23:05:28 [INFO] Stopping server
    2011-05-09 23:05:28 [INFO] Saving chunks
     
  6. Offline

    Jeyge

    Would I be correct in thinking that the commands that didn't work were help, spawn and sethome? If so, you don't have those plugins anymore.
     
  7. Offline

    _fluffy

    i know that i dont have the plugins anymore, but the prefix and suffix i set for my group didnt work
     
  8. Offline

    Jeyge

    Ah, those only work when you have a chat plugin.
     
  9. Offline

    Skrip037

    Hey guys, can one of you assist? I'm not totally sure what the issue is.

    One can login, but once logged in - for certain groups in my permissions file (including the default and primary groups), every time they do anything (except move), it says "You do not have permission to do that.", but the action is allowed (if allowed in the permissions file).
    But for the Owners / Bro / WBuilder groups work fine.
    Permissions file works with the yaml parser.

    Permissions file:
    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.
    #   Does not work for the default world.
    #  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:
    #
    #       - '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:
    #
    #       - '*'
    #   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:
    #       - '-general.time'
    ##
    #   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:
                build: false
                prefix: '&4NOT WHITELISTED&f'
                suffix:
            inheritance:
            permissions:
              - 'commandbook.teleport'
        Faggot:
            default: true
            info:
                build: false
                prefix: '(&4Fag Status&f)&0'
                suffix: ''
            inheritance:
            permissions:
        Approved:
            default: false
            info:
                build: true
                prefix: '&3'
                suffix:
                group: '[+group]'
            inheritance:
            permissions:
                - 'commandbook.give'
                - 'commandbook.give.other'
                - 'commandbook.who'
                - 'commandbook.motd'
                - 'commandbook.spawn'
                - 'commandbook.time'
                - 'commandbook.whereami'
                - 'commandbook.teleport'
                - 'commandbook.teleport.other'
                - 'worldedit.navigation.*'
    #            - 'worldedit.drain'
        Builder:
            default: false
            info:
                build: true
                prefix: '&e'
                suffix:
                group: '[+group]'
            inheritance:
            permissions:
                - 'commandbook.*'
                - 'worldedit.selection.*'
                - 'worldedit.region.*'
                - 'worldedit.navigation.*'
                - 'worldedit.wand.*'
                - 'worldedit.superpickaxe.*'
                - 'signColours.*'
                - '/god'
                - 'worldedit.drain'
                - 'craftbook.mech.elevator.use'
                - 'craftbook.mech.bookshelf.use'
                - 'craftbook.mech.gate'
                - 'craftbook.mech.light-switch'
        WBuilder:
            default: false
            info:
                build: true
                prefix: '&9'
                suffix:
                group: '[+group]'
            inheritance:
            permissions:
                - 'commandbook.*'
                - 'worldedit.*'
                - 'signColours.*'
                - 'craftbook.*'
        Bro:
            default: false
            info:
                build: true
                prefix: '&a'
                suffix:
                group: '[+group]'
            inheritance:
            permissions:
                - '*'
        Owner:
            default: false
            info:
                build: true
                prefix: '&4'
                suffix:
                group: '[+group]'
            inheritance:
            permissions:
                - '*'
    users:
        Skrip:
            group: Owner
            permissions:
        Skrip_Debug:
            group: Builder
            permissions:
        Hawk:
            group: Bro
            Permissions:
        Norgasm:
            group: Builder
            permissions:
        tmacpcandaudio:
            group: Bro
            Permissions:
        Alejandro:
            group: WBuilder
            Permissions:
        Trombomb:
            group: WBuilder
            permissions:
        Jordan:
            group: WBuilder
            Permissions:
        Ahaham:
            group: Approved
            Permissions:
        $tonie:
            group: Approved
            Permissions:
        riguy27:
            group: Approved
            Permissions:
        liltrom:
            group: Builder
            Permissions:
                - '-commandbook.time'
        Phoenix800:
            group: WBuilder
            Permissions:
        Chubbzpwnz:
            group: Builder
            Permissions:
        mcBRUCEmc:
            group: WBuilder
            Permissions:
        StillLife:
            group: WBuilder
            Permissions:
        Eat_Italian:
            group: Builder
            Permissions:
        Cakk:
            group: Builder
            Permissions:
        mysteriousjustin:
            group: Builder
            Permissions:
        Burn_the_Book:
            group: Builder
            Permissions:
    
    Server.log
    Code:
    2011-05-10 00:14:50 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-10 00:14:50 [INFO] Loading properties
    2011-05-10 00:14:50 [INFO] Starting Minecraft server on *:25565
    2011-05-10 00:14:50 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-05-10 00:14:50 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-05-10 00:14:50 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-05-10 00:14:50 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-05-10 00:14:50 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
    2011-05-10 00:14:51 [INFO] Preparing level "world"
    2011-05-10 00:14:51 [INFO] Preparing start region
    2011-05-10 00:14:52 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-05-10 00:14:52 [SEVERE] ebean.properties not found
    2011-05-10 00:14:52 [INFO] DataSourcePool [Self-Closing Doors] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-10 00:14:52 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-10 00:14:52 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-10 00:14:52 [INFO] [AncientGates v1.0.2] Loading conf from disk
    2011-05-10 00:14:52 [INFO] [AncientGates v1.0.2] Loading gates from disk
    2011-05-10 00:14:52 [INFO] [AncientGates v1.0.2] Enabled
    2011-05-10 00:14:52 [INFO] [BBROTHER] ------------------------------------
    2011-05-10 00:14:52 [INFO] [BBROTHER] Hello, and thank you for using the TESTING version of BigBrother!
    2011-05-10 00:14:52 [INFO] [BBROTHER] Please note that, since this is far from complete, there will be many bugs.
    2011-05-10 00:14:52 [INFO] [BBROTHER] IF YOU FIND ANY BUGS, PLEASE REPORT THEM ON http://bugs.nexisonline.net/bb
    2011-05-10 00:14:52 [INFO] [BBROTHER] Please stay tuned in irc.esper.net #bigbrother for updates and build notifications.
    2011-05-10 00:14:52 [INFO] [BBROTHER] ------------------------------------
    2011-05-10 00:14:54 [INFO] [BBROTHER] Building `bbdata` table...
    2011-05-10 00:14:55 [INFO] [BBROTHER] BBData H2 Driver r1 loaded!
    2011-05-10 00:14:58 [INFO] [BBROTHER] Building `bbusers` table...
    2011-05-10 00:15:01 [INFO] [BBROTHER] Permissions enabled using: Permissions v2.7.2
    2011-05-10 00:15:01 [WARNING] [BBROTHER] 'Help' isn't detected. No /help support
    2011-05-10 00:15:01 [INFO] [BBROTHER] BigBrother 1.8-SNAPSHOT (build #398) enabled!
    2011-05-10 00:15:01 [INFO] BlocksOnGlass version 0.11 is enabled!
    2011-05-10 00:15:01 [INFO] [BurningMobs] Monitoring thread started successfully!
    2011-05-10 00:15:01 [INFO] [BurningMobs] v0.3 loaded successfully! With Permissions.
    2011-05-10 00:15:01 [INFO] CommandBook 1.5.1 enabled.
    2011-05-10 00:15:01 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-05-10 00:15:01 [WARNING] CommandBook: Unknown kit item 'null'
    2011-05-10 00:15:01 [WARNING] CommandBook: Unknown kit item 'null'
    2011-05-10 00:15:01 [INFO] CommandBook: 1 kit(s) loaded.
    2011-05-10 00:15:01 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] CommandHelper 3.0-beta1 enabled
    2011-05-10 00:15:01 [INFO] CommandHelper: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] No Aliases were defined.
    2011-05-10 00:15:01 [INFO] CraftBookCommon 3.0-alpha2 enabled.
    2011-05-10 00:15:01 [INFO] CraftBookCommon: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] CraftBookCircuits 3.0-alpha2 enabled.
    2011-05-10 00:15:01 [INFO] CraftBookCircuits: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] CraftBookCircuits: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] CraftBookMechanisms 3.0-alpha2 enabled.
    2011-05-10 00:15:01 [INFO] CraftBookMechanisms: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] 1 cauldron recipe(s) loaded
    2011-05-10 00:15:01 [INFO] CraftBookVehicles 3.0-alpha2 enabled.
    2011-05-10 00:15:01 [INFO] CraftBookVehicles: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] FenceStack version 1.13 loaded.
    2011-05-10 00:15:01 [INFO] iChat (v2.2.2) enabled
    2011-05-10 00:15:01 [INFO] [LightLevel] using Permissions 2.7.2
    2011-05-10 00:15:01 [INFO] [LightLevel] - Version 0.2 Enabled
    2011-05-10 00:15:01 [INFO] [Permissions] version [2.7.2] (Phoenix)  loaded
    2011-05-10 00:15:01 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] CraftBookCircuits: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] [iChat] Found Permissions (v2.7.2)
    2011-05-10 00:15:01 [INFO] SecretDoors v0.2 by MrChick enabled
    2011-05-10 00:15:01 [INFO] Self-Closing Doors v0.22 enabled.
    2011-05-10 00:15:01 [INFO] [SCD] Permission system detected.
    2011-05-10 00:15:01 [INFO] WorldEdit 4.4 enabled.
    2011-05-10 00:15:01 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-10 00:15:01 [INFO] WorldGuard: Blacklist loaded.
    2011-05-10 00:15:01 [INFO] WorldGuard: (world) Single session is enforced.
    2011-05-10 00:15:01 [INFO] WorldGuard: (world) TNT ignition is PERMITTED.
    2011-05-10 00:15:01 [INFO] WorldGuard: (world) Lighters are PERMITTED.
    2011-05-10 00:15:01 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-05-10 00:15:01 [INFO] WorldGuard: (world) Fire spread is UNRESTRICTED.
    2011-05-10 00:15:01 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-05-10 00:15:01 [INFO] WorldGuard: 11 regions loaded for 'world'
    2011-05-10 00:15:01 [INFO] WorldGuard 5.0-alpha10 enabled.
    2011-05-10 00:15:01 [INFO] [xAuth] Loading player accounts..
    2011-05-10 00:15:01 [INFO] [xAuth] Done! Loaded 16 Accounts!
    2011-05-10 00:15:01 [INFO] [xAuth] v1.2.4 Enabled!
    2011-05-10 00:15:01 [INFO] Done (1.030s)! For help, type "help" or "?"
    2011-05-10 00:15:01 [INFO] Burn_the_Book [/72.175.146.105:49841] logged in with entity id 170
    2011-05-10 00:15:01 [INFO] CommandBook: No intro.mid; not playing intro song.
    2011-05-10 00:15:04 [INFO] [BBROTHER] SQLite can't cleanse by # of records.
    
     
  10. Offline

    _fluffy

    thanks i got it all working you were a big help
     
  11. Offline

    Jeyge

    Add craftbook.mech.* to your default group.
     
  12. There is an issue with the "pr -reload all" command. We have been having a few lockups lately, and I finally traced it to this command. Basically, every command has a % chance of a total lockup. Characteristics of the lockup are that there are suddenly two 100% load java threads, one is normal, for the main MC thread, the other one seems to be the Permissions reload thread? Server becomes unresponsive afterwards.

    Would be great to get that fixed if possible.
     
  13. Offline

    GROMkill

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - mcmmo.commands.setmyspawn
            - lwc.protect
            - preciousstones.benefit.*
            - preciousstones.whitelist.*
            - mcmmo.commands.party
            - mcmmo.chat.partychat
            - mcmmo.commands.whois
            - mcmmo.commands.ability
            - mcmmo.item.chimaerawing
            - whoareyou.list
            - whoareyou.player
            - whoareyou.world
    Miner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.mining
            - mcmmo.skills.mining
            - mcmmo.ability.excavation
            - mcmmo.skills.excavation
    Woodsman:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.woodcutting
            - mcmmo.skills.woodcutting
            - mcmmo.skills.archery
            - mcmmo.skills.taming
    Smithy:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.swords
            - mcmmo.skills.swords
            - mcmmo.skills.repair
            - mcmmo.regeneration
    Farmer:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.herbalism
            - mcmmo.skills.herbalism
            - mcmmo.ability.unarmed
            - mcmmo.skills.unarmed
            - mcmmo.skills.taming
    Axeman:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.axes
            - mcmmo.skills.axes
            - mcmmo.skills.archery
            - mcmmo.skills.acrobatics
    Swordsman:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.swords
            - mcmmo.skills.swords
            - mcmmo.skills.archery
            - mcmmo.skills.acrobatics
    MartialArtist:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.unarmed
            - mcmmo.skills.unarmed
            - mcmmo.skills.archery
            - mcmmo.regeneration
    Rogue:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.excavation
            - mcmmo.skills.excavation
            - mcmmo.skills.archery
            - mcmmo.skills.acrobatics
        stage1:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - kit.kit
            - kit.leatherarmor
            - kit.stonetools
            - kit.dyes
            - kit.cookies
        stage2:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - kit.kit
            - kit.cake
            - kit.pumpkins
            - kit.irontools
            - kit.ironarmor
        both:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - 5buckz
            permissions:
            - kit.kit
            - kit.cake
            - kit.pumpkins
            - kit.irontools
            - kit.ironarmor
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        GROMkill:
            group: Admins
            permissions: null
        Herpina:
            group: Moderator
            info:
                prefix: Moo
                suffix: Cow
            permissions:
            - herp.derp
        Pashalik_Mons:
            group: Admins
            permissions: null
        Gontuzic:
            group: both
            permissions: null
        WeChooseTheDark:
            group: stage2
            permissions: null
    
    Code:
    [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    	at java.lang.reflect.Constructor.newInstance(Unknown Source)
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:138)
    	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)
    Caused by: while parsing a block mapping
     in "<reader>", line 1, column 1:
        plugin:
        ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 123, column 5:
            stage1:
            ^
    
    	at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    	at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    	at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    	at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    	at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    	at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    	at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    	at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:131)
    	... 13 more
    What's wrong? D:
     
  14. Offline

    Jeyge

    I think your only problem was the strange spacing of some of your group names. Give this version a try:
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - mcmmo.commands.setmyspawn
            - lwc.protect
            - preciousstones.benefit.*
            - preciousstones.whitelist.*
            - mcmmo.commands.party
            - mcmmo.chat.partychat
            - mcmmo.commands.whois
            - mcmmo.commands.ability
            - mcmmo.item.chimaerawing
            - whoareyou.list
            - whoareyou.player
            - whoareyou.world
        Miner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.mining
            - mcmmo.skills.mining
            - mcmmo.ability.excavation
            - mcmmo.skills.excavation
        Woodsman:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.woodcutting
            - mcmmo.skills.woodcutting
            - mcmmo.skills.archery
            - mcmmo.skills.taming
        Smithy:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.swords
            - mcmmo.skills.swords
            - mcmmo.skills.repair
            - mcmmo.regeneration
        Farmer:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.herbalism
            - mcmmo.skills.herbalism
            - mcmmo.ability.unarmed
            - mcmmo.skills.unarmed
            - mcmmo.skills.taming
        Axeman:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.axes
            - mcmmo.skills.axes
            - mcmmo.skills.archery
            - mcmmo.skills.acrobatics
        Swordsman:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.swords
            - mcmmo.skills.swords
            - mcmmo.skills.archery
            - mcmmo.skills.acrobatics
        MartialArtist:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.unarmed
            - mcmmo.skills.unarmed
            - mcmmo.skills.archery
            - mcmmo.regeneration
        Rogue:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: Default
            permissions:
            - mcmmo.ability.excavation
            - mcmmo.skills.excavation
            - mcmmo.skills.archery
            - mcmmo.skills.acrobatics
        stage1:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - kit.kit
            - kit.leatherarmor
            - kit.stonetools
            - kit.dyes
            - kit.cookies
        stage2:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - kit.kit
            - kit.cake
            - kit.pumpkins
            - kit.irontools
            - kit.ironarmor
        both:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - 5buckz
            permissions:
            - kit.kit
            - kit.cake
            - kit.pumpkins
            - kit.irontools
            - kit.ironarmor
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        GROMkill:
            group: Admins
            permissions: null
        Herpina:
            group: Moderator
            info:
                prefix: Moo
                suffix: Cow
            permissions:
            - herp.derp
        Pashalik_Mons:
            group: Admins
            permissions: null
        Gontuzic:
            group: both
            permissions: null
        WeChooseTheDark:
            group: stage2
            permissions: null
    
     
  15. Offline

    CrcleBrner87

    I am in dire need of a little help in trying to work a server, i just started playing with the idea of a server and i want to use a good few plugins but i also would like to use permissions and i have read all i can into it and still have only a slight clue on what is going on, and i would greatly appreciate some assistance in trying to figure out how to set permissions in any way, i am still a little clueless on the programming language and not sure exactly the way permissions is supposed to be laid out in the config file!!
     
  16. Offline

    Jeyge

    I was actually in your shoes just a month ago myself and spent a lot of time reading while trying to figure out how all of this worked. My suggestion for you would be to just download everything you want and start slowly adding things to your permissions file. There really isn't a lot more that can be said outside of the wiki in the first post until you actually have a file and it either works or doesn't. Once you get to that point, then post here with any problems.

    As for the structure of the file, it is pretty fickle about how things are spaced. Everything works great if you have a groups:, a users: and your file is named <world name>.yml and then completely falls apart when something is wrong. Just try to keep each level indented 4 space, don't use tabs and follow what is in the default permissions file and you should be fine.
     
  17. Offline

    Ben Allison

    Does anyone have a good working permissions .yml file with more groups like builder, owner and more and I wont to know how to be able to stop people from being able to spawn items.

    BEN
     
  18. Offline

    brzavr

    sorry
    permissions 2.7.2
    cb 740

    in server.log no error messages at this time

    this full world.wml
    Code:
    #
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            permissions:
            - lwc.protect
            - warpz0r.home
            - warpz0r.sethome
            - warpz0r.compasshome
            - warpz0r.compassreset
            - warpz0r.list
            - warpz0r.warp
            - general.spawn
            - 'general.playerlist'
    Admins:
            default: false
            info:
                prefix: '&4[A]'
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        brzavr:
            group: Admins
            permissions: null
    
    if build any blocks on the free space I get a message "you don't have permissions to use this"
    and the block remains
     
  19. Offline

    rcjrrjcr

    You need to indent "Admins:" 4 more spaces in, like this:
    Code:
    plugin:
        permissions:
            system: default
            copies:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            permissions:
            - lwc.protect
            - warpz0r.home
            - warpz0r.sethome
            - warpz0r.compasshome
            - warpz0r.compassreset
            - warpz0r.list
            - warpz0r.warp
            - general.spawn
            - 'general.playerlist'
        Admins:
            default: false
            info:
                prefix: '&4[A]'
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        brzavr:
            group: Admins
            permissions: null
    
     
  20. Offline

    brzavr

    Spaces there are)) I made ​​a mistake when copying from file

    if login as "brzavr" - all ok!
    if login as any other nickname - aI get a message "you don't have permissions to use this", but I can build!
    inexplicably pops up this message
     
  21. Offline

    Palfreyfish

    Hi, I just started running a server, and I was setting up my config file for Permissions, and I wanted to ask how to set what level someone who's never been on the server before. I'm also running Group Manager & various other plugins.

    Cheers
     
  22. Offline

    NightmareX91

    I am using craftbukkit 766 (the latest recommended build) and my permissions aren't working :c Could someone confirm this works with 766?
     
  23. Offline

    lapzoo

    It does not work for 766 yet:

    15:58:23 [SCHWERWIEGEND] Could not load 'plugins/Permissions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:164)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:191)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 817
    at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
    at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
    at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
    at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
    at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:58)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:132)
    ... 13 more
     
  24. Offline

    NightmareX91

    Then I must wait until it does work!
     
  25. Offline

    fartman

    Ok, i'm getting the BLOCK_Place error again, and I can't seem to fix it.
    Here's my YML


    # 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:
    - ''
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'

    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
    Nub:
    group: Default
    permissions:
    Nub:
    group: Default
    info:
    prefix: ''
    suffix: ''
    permissions:
    - ''
    Nub:
    group: Admins
    permissions:
    - '*'

    Help?
     
  26. Offline

    Maxis010

    That error is caused by a Unicode character in the YML, Permissions DOES work with 766, that or my some act of god my 766 server is loaded Permissions and about 20 permissions reliant plugins just fine

    @ lapzoo
    post your yml files from permissions so they can be fixed

    @ Everyone
    Any error like this one
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 817
    means that the YAML parser found something it didn't like
     
  27. Offline

    NightmareX91

    All I did was add a new rank which was a copy of another rank but with a few more permissions :/
     
  28. Offline

    Maxis010

    Post or PM me your permissions file, I had the exact error about 2 hours ago so I've got a good idea what was buggered up
     
  29. Offline

    fartman

    Help? Please?
     
  30. Offline

    jimralphy

    This may be a silly question, but I can't get the info: prefix: to work...

    I want to make moderators have a prefix Mod that is magenta, Vips get VIP in blue, and Admin in red. But I can't even get the text to show up in the chat log.

    What am I doing wrong? Can someone help me?

    Here is a sample of my .yml:

    Vip25:
    default: false
    info:
    prefix: 'VIP'
    suffix: ''
    build: true
    inheritance:
    - Vip10
    permissions:
    - 'worldedit.superpickaxe'
    - 'worldedit.navigation.jumpto'
    Admins:
    default: false
    info:
    prefix: 'Admin'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    users:
    darth_vato:
    group: Vip25
    info:
    prefix:
    suffix:
    jimralphy:
    group: Admins
    info:
    prefix:
    suffix:
     
  31. Offline

    BioRage

    Is it possible to set more than one group per user?

    name:
    group: Mayor,Guard,LOL?
     
Thread Status:
Not open for further replies.

Share This Page