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

    Noah1997

    Yeah, my permissions yml file turned into a bunch of jumble?
     
  3. Offline

    alefnull

    by the way: i just loaded this one up, and i'm still having the same problem. thanks anyway.
     
  4. Offline

    RustyDagger

    Hey yetti how about next time you decide to push an update that changes the whole format of the yml you Put up a nice big red bit of text telling us to back up our files first i lost 2 months worth of Player Ranks due to the update not to mention the vip payed ranks that i'm now searching through paypal to fix....

    It seems the spacing rules have changed and the - 'node.sub1' has changed to - node.sub1

    Would of been nice to know the change log did not state it at all so yer just some warning next time please you will find it saves you alot of yelling and screaming and answering reply s about why my config broke.
     
  5. Offline

    Chaos89

    It should say in the description that Permissions does NOT override Op status.
     
  6. Offline

    lycano

    Erm .. about the formatation issues. May i ask you (who have this problem) to open this file with notepad++? It seems to me that only the line ending changed. Someone may remember the \n \r\n thingy...

    If this doesnt help use the button inside notepad++ to view "All Charakters". That will give you the power to see control keys (if there are some). If notepad++ doesnt know the line ending and there were no control keys visible then you could search and replace in regex mode and fix this in seconds.
    Use 4 spaces in search mode and repplace with "\nuuuu" where u stands for space. Try the search without replacing. If it doesnt find the 4 spaces you entered use \s\s\s\s. That should do the trick.

    (i think this step above isn't needed and notepad++ will just show the whole file as you have seen it before xD) If you need to open it with notepad under windows just use "convert line endings to windows". Hope that helps.
     
  7. Offline

    Thenaz

    PLEASE HELP!
    I am using the bukkit 1.4 and im running on windows vista 32 bit
    when i ever I stop my server my permissions file changes format this has happend with group manager when I tryed it also!

    When ever I try to copy and format the format on here it changes back to the old on..... Idk how to fix this at all =(

    plugin:
    permissions:
    system: default
    copies: null
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - foo.bar
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - essentials.help
    - essentials.tpa
    - essentials.home
    - essentials.sethome
    - essentials.warp
    - essentials.warp.list
    - essentials.setwarp
    - essentials.kick
    - essentials.item
    - essentials.kit
    - essentials.give
    - essentials.time
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    name: '&1'
    build: true
    inheritance: null
    permissions:
    - '*'
    - essentials.*
    users:
    TheNo1Yeti:
    group: Admins
    permissions: null
    Thenaz:
    group: Admins
    info:
    prefix: '&2GOD'
    suffix: ''
    permissions:
    - ichat.*
    - permissions.*
    Derpina:
    group: Admins
    permissions:
    - -derp.derp
    Zen9400:
    group: Moderator
    info:
    prefix: '&2OVERLORD'
    suffix: ''
    permissions:
    - ichat.*
    - permissions.*
    tommy04:
    group: Moderator
    info:
    prefix: '&2KING'
    suffix: '&2'
    permissions:
    - essentials.spawn
    - essentials.item
    - ichat.*
    - permissions.*
    - worldguard.region
    tHeKrAcKeR:
    group: Moderator
    info:
    prefix: ''
    suffix: '&5'
    permissions:
    - essentials.ban
    - essentials.me
    - essentials.spawnmob
    - essentials.broadcast
    - essentials.kill
    - essentials.unban
    - essentials.jails
    - essentials.togglejail
    - essentials.heal
    - essentials.god
    - worldguard.region
    - essentials.tp

    It seems my file keeps breaking when ever I stop or reload the server please help

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

    jeddeliso

    @rcjrrjcr and @TheYeti

    heres my config file

    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:
    Guest:
    default: true
    info:
    prefix: '&aTraveller'
    suffix: ''
    build: false
    inheritance:
    permissions:
    - '-mobrider.player'
    - 'essentials.afk'
    - 'essentials.balance'
    - 'essentials.help
    - 'essentials.home'
    - 'essential.list'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.pay
    - 'essentials.protect.pvp'
    - 'essentials.rules'
    - 'essentials.sell'
    - 'essentials.tpa'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.worth'
    - 'localshops.buysell'
    - 'jail.usercmd.jailstatus'
    - 'mcmmo.chat.adminchat'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.commands.ability'
    - 'mcmmo.commands.myspawn'
    - 'mcmmo.commands.party'
    - 'mcmmo.commands.ptp'
    - 'mcmmo.commmands.setmyspawn'
    - 'mcmmo.commands.whois'
    - 'mcmmo.motd'
    - 'mobRider.*'
    - 'monstertamer.player.*'
    - 'sprint.allow'
    - 'war.player'
    - 'war.warp'
    - 'wings.fly'
    - 'wolfpound.use'
    - 'ichat.color'
    Basic:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'localshops.buysell'
    - 'localshops.manage.owner'
    - 'localshops.create'
    - 'localshops.move.free'
    - 'lwc.protect'
    - 'creaturebox.creature'
    - 'creaturebox.dropspawner'
    - 'creaturebox.placespawner'
    - 'creaturebox.set'
    - 'essentials.afk'
    - 'essentials.balance'
    - 'essentials.help'
    - 'essentials.home'
    - 'essentials.list'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.pay'
    - 'essentials.playerlist'
    - 'essentials.rules'
    - 'essentials.sell'
    - 'essentials.sethome'
    - 'essentials.spawn'
    - 'essentials.tpa'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.warp'
    - 'essentials.worth'
    - 'essentials.signs.heal.use'
    - 'essentials.signs.disposal.use'
    - 'essentials.signs.free.use'
    - 'essentials.signs.mail.use'
    - 'essentials.signs.mail.create'
    - 'essentials.signs.protection.create'
    - 'essentials.signs.protection.use'
    - 'essentials.signs.protection.override'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.commands.ability'
    - 'mcmmo.commands.myspawn'
    - 'mcmmo.commands.party'
    - 'mcmmo.commands.ptp'
    - 'mcmmo.commands.setmyspawn'
    - 'mcmmo.commands.whois'
    - 'mcmmo.motd'
    - 'mcmmo.regeneration'
    - 'mcmmo.skills.herbalism'
    - 'mcmmo.skills.repair'
    - 'mobRider.*'
    - 'monster.player.*'
    - 'multiverse.list'
    - 'multiverse.protal.list'
    - 'sprint.allow'
    - 'war.player'
    - 'war.warp'
    - 'wolfpound.use'
    - 'ichat.color'
    Police:
    default: false
    info:
    prefix: '&1Police'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'creaturebox.creature'
    - 'creaturebox.dropspawner'
    - 'creaturebox.placespawner'
    - 'creaturebox.set'
    - 'essentials.afk'
    - 'essentials.balance'
    - 'essentials.help'
    - 'essentials.home'
    - 'essentials.kit.*'
    - 'essentials.list'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.pay'
    - 'essentials.playerlist'
    - 'essentials.protect.pvp'
    - 'essentials.rules'
    - 'essentials.sell'
    - 'essentials.sethome'
    - 'essentials.spawn'
    - 'essentials.tpa'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.warp'
    - 'essentials.worth'
    - 'essentials.signs.heal.use'
    - 'essentials.signs.disposal.use'
    - 'essentials.signs.free.use'
    - 'essentials.signs.mail.use'
    - 'essentials.signs.mail.create'
    - 'essentials.signs.protection.*'
    - 'lwc.mod'
    - 'lwc.protect'
    - 'monstertamer.player.*'
    - 'mobRider.*'
    - 'multiverse.list'
    - 'multiverse.portal.list'
    - 'war.player'
    - 'war.warp'
    - 'localshops.*'
    - 'mcmmo.motd'
    - 'mcmmo.regeneration'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.chat.adminchat'
    - 'mcmmo.commands.ptp'
    - 'mcmmo.commands.party'
    - 'mcmmo.commands.whois'
    - 'mcmmo.commands.myspawn'
    - 'mcmmo.commands.setmyspawn'
    - 'mcmmo.skills.*'
    - 'mcmmo.ability.*'
    - 'sprint.allow'
    - 'essentials.protect.pvp'
    - 'wolfpound.use'
    - 'wings.fly'
    - 'ichat.colour'
    Admin:
    default: false
    info:
    prefix: '&eLord'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'creaturebox.set'
    - 'creaturebox.give'
    - 'creaturebox.creature'
    - 'creaturebox.dropspawner'
    - 'creaturebox.placespawner'
    - 'worldedit.superpickaxe'
    - 'worldedit.butcher'
    - '-worldedit.*'
    - 'localshops.*'
    - 'citizens.*'
    - 'essentials.*'
    - 'groupmanager.*'
    - 'izone.*'
    - 'jail.command.check'
    - 'jail.commands.jail.jaillist'
    - 'jail.commands.telein'
    - 'jail.commands.teleout'
    - 'jail.commands.unjail'
    - 'lwc.admin'
    - 'lwc.protect'
    - 'mcmmo.chat.adminchat'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.commands.myspawn'
    - 'mcmmo.commands.party'
    - 'mcmmo.commands.ptp'
    - 'mcmmo.commands.setmyspawn'
    - 'mcmmo.commands.whois'
    - 'mcmmo.motd'
    - 'mcmmo.regeneration'
    - 'mcmmo.skills.*'
    - 'mcmmo.ability.*
    - 'mcmmo.commands.ability'
    - 'mcmmo.tools.mcgod'
    - 'mobRider.*'
    - 'monstertamer.player.*'
    - 'multiverse.*'
    - 'sprint.allow'
    - 'war.player'
    - 'war.warp'
    - 'wolfpound.use'
    - 'wings.fly'
    - 'ichat.colour
    Owner:
    default: false
    info:
    prefix: '&eOwner'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '-mcmmo.item.chimaerawing'
    - 'citizens.*'
    - 'creaturebox.*'
    - 'essentials.*'
    - 'groupmanager.*'
    - 'izone.*'
    - 'jail.*'
    - 'lwc.admin'
    - 'lwc.protect'
    - 'localshops.*'
    - 'mcmmo.*'
    - 'mobRider.*'
    - 'monstertamer.player'
    - 'multiverse.*'
    - 'war.*'
    - 'wolfpound.*'
    - 'worldedit.*'
    - 'worldguard.*'
    - 'wings.fly'
    - 'ichat.colour'
    Survivalist:
    default: false
    info:
    prefix: '&cSurvivalist'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'essentials.afk'
    - 'essentials.heal'
    - 'essentials.help'
    - 'essentials.home'
    - 'essentials.list'
    - 'essentials.sell'
    - 'essentials.worth'
    - 'essentias.balance'
    - 'essentials.pay'
    - 'essentials.mail'
    - 'essentials.mail.send'
    - 'essentials.protect.pvp'
    - 'essentials.rules'
    - 'essentials.tpa'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'localshops.buysell'
    - 'localshops.manage.owner'
    - 'localshops.create'
    - 'localshops.move.free'
    - 'jail.usercmd.jailstatus'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.commands.myspawn'
    - 'mcmmo.commands.party'
    - 'mcmmo.commands.ptp'
    - 'mcmmo.commands.setmyspawn'
    - 'mcmmo.commands.whois'
    - 'mcmmo.commands.ability'
    - 'mcmmo.motd'
    - 'mcmmo.regeneration'
    - 'mcmmo.skills.*'
    - 'mobRider.*'
    - 'monstertamer.player.*'
    - 'multiverse.list'
    - 'multiverse.portal.list'
    - 'sprint.allow'
    - 'war.player'
    - 'wolfpound.use'
    - 'essentials.kit.*'
    - 'wings.fly'
    - 'ichat.color'
    Villager:
    default: false
    info:
    prefix: '&aVillager'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    Axeman:
    default: false
    info:
    prefix: '&cAxeman'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.axes'
    - 'mcmmo.ability.axes'
    Swordsman:
    default: false
    info:
    prefix: '&cSwordsman'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.swords'
    - 'mcmmo.ability.swords'
    Archer:
    default: true
    info:
    prefix: '&cArcher'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.archery'
    - 'mcmmo.skills.swords'
    SuperHero:
    default: true
    info:
    prefix: '&cSuperHero'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.unarmed'
    - 'mcmmo.ability.unarmed'
    - 'mcmmo.skills.acrobatics'
    - 'wings.fly
    Miner:
    default: false
    info:
    prefix: '&cMiner'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.mining'
    - 'mcmmo.ability.mining'
    LumberJack:
    default: false
    info:
    prefix: '&cLumberJack'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.woodcutting'
    - 'mcmmo.ability.woodcutting'
    Excavator:
    default: false
    info:
    prefix: '&cExcavator'
    suffix: ''
    build: true
    inheritance:
    - Basic
    permissions:
    - 'mcmmo.skills.excavation'
    - 'mcmmo.ability.excavaion'

    ##
    # 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:
    ausrelgin:
    group: VIP
    permissions:
    jedserveradmin:
    group: Owner
    permissions:
    leahdeliso:
    group: VIP
    permissions:
    aziannoob:
    group: VIP
    permissions:
    sam1296:
    group: VIP
    permissions:
    panda_noob69:
    group: VIP
    permissions:
    jeddeliso596:
    group: Owner
    permissions:
    jeddeliso:
    group: Owner
    permissions:
    jcapistrano:
    group: VIP
    permissions:
    samsam1003:
    group: VIP
    permissions:
    jaiiiwon:
    group: VIP
    permissions:


    Heres my error file, and so far, online pasers found the error, my when i tried to fix it, it still came up with the same error log
    Show Spoiler

    [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:136)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: while parsing a block collection
    in "<reader>", line 69, column 13:
    - '-mobrider.player'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 73, column 16:
    - 'essentials.home'
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)
    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.composeSequenceNode(Composer.java:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    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

    to TheYeti,
    is my config file overloaded?, and can u only have 3 groups?

    to rcjrrjcr,
    theres my config file, hope you find something wrong about it!

    THANKS VERY MUCH FOR HELP TO THIS, and the PERMISSIONS plugin itself, i just wanna make it work, TNX! :)
     
  9. Offline

    rcjrrjcr

    I still found quite a few improperly quoted permissions. Try searching
    Code:
    ^\s*- [^']*$
    in Notepad++ as a regular expression.

    EDIT: Problems are at lines 72, 77, 268, 279, and 411.

    Line 72 -
    Code:
    'essentials.help
    Line 77 -
    Code:
    'essentials.pay
    Line 268 -
    Code:
    'mcmmo.ability.*
    Line 279 -
    Code:
    'ichat.color
    Line 411 -
    Code:
    'wings.fly
     
    jeddeliso likes this.
  10. Offline

    RoundEye

    For some reason the console is showing that permissions isn't running. Plugins will say "no permissions plugin detected". The permissions.jar file is there... and the config is set up too. Any ideas?
     
  11. Offline

    Pippin

    I can't wait too see ingame modifying commands.. this is really the only working plugin left for permissions, groupmanager is crazy outdated.
     
  12. Offline

    jeddeliso

    :O , i missed that much!?! well, i think i should get glasses! BUT THANK YOU VERY MUCH! TESTED AND WORKS! i shall learn from my mistake. i might hang around this thread forawhile, just incase, THANK YOU VERY MUCH AGAIN! :D, (my life is saved from my killer players)
     
  13. Offline

    epiqu1n

    By "there", you mean in the plugins folder, correct?
    Also, your config file should be in plugins/Permissions/ and should be named "yourworldhere.yml".
    For instance, if your main world name was mainWorld, the config file should be named "mainWorld.yml"

    If all that is correct, then let's see your config file.
     
  14. Offline

    RustyDagger

    Uh i still dont get why you had to go and change my format of my file i was ussing the old essentials format for the last few months and then this update it like force changed my format and broke every thing. can you explain why that is for me Maybe it will help with the frustration of adding players back to their ranks 1 by 1 (a command would help also )
     
  15. Offline

    ionbasa

    ok, so after updating to the Permissions 2.6 and Bukkit 270, I believe for there to be a problem.
    Here is my config file:
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Friends:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions: null
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance: null
            permissions:
            - localshops.buysell
            - iConomy.payment
            - tpack.cuboid.listall
            - tpack.items.clear
            - -tpack.cuboid
            - -tpack.boomstick
            - -tpack.time
            - -tpack.items.give
            - -tpack.items.giveall
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - iConomy.payment
            - iConomy.admin.stats
            - essentials.item
            - tpack.cuboid
            - tpack.boomstick
            - tpack.cuboid.fill
            - tpack.cuboid.clear
            - tpack.cuboid.create
            - tpack.cuboid.delete
            - tpack.cuboid.listowned
            - tpack.cuboid.select
            - tpack.cuboid.addallowed
            - tpack.cuboid.removeallowed
            - tpack.cuboid.protection
            - tpack.cuboid.save
            - tpack.time
            - tpack.items.give
            - tpack.items.giveall
            - tpack.items.clear
            - supplysign.create
            - supplysign.access
            - supplysign.destroy
            - -supplysign.reload
            - -tpack.cuboid.deleteall
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
    users:
        ionbasa:
            group: Admins
            permissions: null
        roshek:
            group: Moderator
            permissions: null
        julia12853:
            group: Moderator
            permissions:
            - localshops.manage
            - localshops.manage.owner
            - localshops.create
            - -tpack.boomstick
        blackknight27:
            group: Friends
            permissions:
            - -tpack.boomstick
    
    Firstly, after saving with notepad++ and starting the server all blank spots ge "null" added.
    Secondly, it automatically deleted the ' for the permissions with the exception of the admin, it still gets left - '*' , is that normal?
     
  16. Offline

    kahlilnc

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&f[NEWB]&f'
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'lwc.blockinventory'
                - 'ecoCreature.Rewarding.Creeper'
                - 'ecoCreature.Rewarding.Skeleton'
                - 'ecoCreature.Rewarding.Zombie'
                - 'ecoCreature.Rewarding.Spider'
                - 'ecoCreature.Rewarding.PigZombie'
                - 'ecoCreature.Rewarding.Ghast'
                - 'ecoCreature.Rewarding.Slime'
                - 'ecoCreature.Rewarding.Giant'
                - 'ecoCreature.Rewarding.Chicken'
                - 'ecoCreature.Rewarding.Cow'
                - 'ecoCreature.Rewarding.Pig'
                - 'ecoCreature.Rewarding.Sheep'
                - 'ecoCreature.Rewarding.Squid'
                - 'ecoCreature.Rewarding.Spawner'
                - 'stargate.use'
                - 'turnstile.use'
                - 'residence.create'
                - 'musiccraft.use'
                - 'mobRider.command.goto'
                - 'mobRider.command.attack'
                - 'mobRider.command.go'
                - 'mobRider.command.stop'
                - 'mobRider.command.follow'
                - 'mobRider.command.mount'
                - 'mobRider.players'
                - 'mobRider.animals'
                - 'mobRider.monsters'
        Citizen:
            default: false
            info:
                prefix: '[Citizen]'
                suffix: '&a'
                build: true
            inheritence:
                - Default
            permissions:
                - 'lwc.protect'
                - 'stargate.create'
                - 'stargate.destroy.owner'
                - 'preciousstones.benefit.*'
                - 'preciousstones.whitelist.*'
                - 'mcmmo.ability.unarmed'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.skills.*'
                - 'mcmmo.commands.ability'
                - 'mcmmo.commands.ptp'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.commands.myspawn'
                - 'mcmmo.commands.setmyspawn'
                - 'phatloots.use'
                - 'dungeonreward.getreward'
                - 'dungeonreward.use'
                - 'essentials.tpa'
                - 'essentials.tpaccept'
                - 'essentials.tpdeny'
                - 'essentials.tpahere'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.warp.[warpname]'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'wolfpound.adopt'
                - 'war.player'
                - 'war.warp'
                - 'stargate.use'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
        Moderator:
            default: false
            info:
                prefix: '&2[Mod]&f'
                suffix: '&9'
                build: true
            inheritance:
                - Citizen
            permissions:
                - 'lwc.mod'
                - 'ecoCreature.Rewarding.VIP'
                - 'stargate.private'
                - 'stargate.hidden'
                - 'stargate.create.personal'
                - 'preciousstones.bypass.*'
                - 'preciousstones.alert.*'
                - 'essentials.give'
                - 'essentials.item'
                - 'essentials.time'
                - 'essentials.tp'
                - 'essentials.setwarp'
                - 'essentials.delwarp'
                - 'stargate.use'
                - 'magiccarpet.mc'
                - 'turnstile.make'
                - 'turnstile.link'
                - 'turnstile.price'
                - 'turnstile.owner'
                - 'turnstile.delete'
                - 'turnstile.use'
                - 'mcmmo.commands.setmyspawnother'
                - 'blockhead.hat'
                - 'phatloots.info'
                - 'phatloots.name'
                - 'phatloots.make'
                - 'phatloots.link'
                - 'phatloots.add'
                - 'phatloots.remove'
                - 'phatloots.unlink'
                - 'phatloots.delete'
                - 'phatloots.time'
                - 'phatloots.use'
                - 'dungeonreward.delete'
                - 'dungeonreward.unlink'
                - 'dungeonreward.amount'
                - 'dungeonreward.link'
                - 'dungeonreward.make'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'war.*'
                - 'war.player'
                - 'war.warp'
                - 'musiccraft.use'
                - 'musiccraft.ignore.repeat'
                - 'musiccraft.ignore.mintempo'
                - 'musiccraft.ignore.playerlimit'
                - 'musiccraft.ignore.cooldowntimer'
        SemiAdmins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritence:
                -Moderator
            permissions:
                - 'iConomy.admin.grant'
                - 'iConomy.admin.set'
                - 'iConomy.admin.stats'
                - 'iConomy.admin.reset'
                - 'iConomy.admin.account.create'
                - 'iConomy.admin.account.remove'
                - 'lwc.admin'
                - 'stargate.destroy.all'
                - 'stargate.destroy'
                - 'preciousstones.admin.*'
                - 'preciousstones.override.*'
                - 'turnstile.admin.bank'
                - 'turnstile.admin.list'
                - 'turnstile.admin.locate'
                - 'turnstile.admin.ignore.price'
                - 'turnstile.admin.ignore.cost'
                - 'turnstile.admin.ignore.owner'
                - 'residence.create'
                - 'residence.admin'
                - 'mcmmo.tools.mcgod'
                - 'mcmmo.tools.mcrefresh'
                - 'mcmmo.tools.mmoedit'
                - 'blockhead.hat.items'
                - 'blockhead.hat.give.players.items'
                - 'blockhead.hat.give.groups.items'
                - 'phatloots.admin.list'
                - 'phatloots.admin.reset'
                - 'dungeonreward.admin.locate'
                - 'dungeonreward.admin.list'
                - 'dungeonreward.admin.bank'
                - 'musiccraft.songs.admin'
                - 'worldedit.*'
                - 'worldedit.clipboard.*'
                - 'iConomyChestShop.shop.admin'
        Admins:
            default: false
            info:
                prefix: '&b[Admin]&f'
                suffix: '&d'
                build: true
            inheritance:
            permissions:
                - '*'
    This is my permissions yml
    I no I have lots of plugins but I am getting compaints for Citizens with a error message popping up everytime they place blockssaying "You do not have permissions to do that" or something like that.
    Can someone help me.
    PS=Default cannot build and is for non registered players and Citizens are.
     
  17. Offline

    xPeetey

    This is my permissions config (I'm new to this)

    CraftBukkit Build 670
    Permissions v2.6

    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance: null
            permissions:
            - gastronomic.player.*
            - commandbook.who
            - commandbook.motd
            - commandbook.rules
            - commandbook.msg
            - commandbook.clear
            - commandbook.whois
            - commandbook.whos.other
        Player:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Guest
            permissions:
            - signColors.*
            - tombstone.use
            - tombstone.large
            - tombstone.sign
            - tombstone.freesign
            - iConomy.access
            - iConomy.payment
            - localshops.buysell
            - localshops.manage
            - localshops.manage.owner
            - localshops.create
            - localshops.move
            - localshops.destroy
        Trusted:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Player
            permissions: null
        Admin:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - gastronomic.admin.*
            - moblimiter.*
            - signColors.*
            - tombstone.admin
            - tombstone.use
            - tombstone.large
            - tombstone.freechest
            - tombstone.sign
            - tombstone.freesign
            - tombstone.cmd.tombfind
            - worldedit.*
            - worldguard.*
            - iConomy.*
            - 'commandbook.*'
            - localshops.*
            - announcer.admin
    There doesn't seem to be anything wrong with it, Permissions start fine when I start my server but this comes up when a player joins and tries /shop or any other command it says it has an internal error and this shows up in the log:

    Code:
    2554-04-10 16:40:21 [SEVERE] java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.bukkit.migration.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:77)
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.bukkit.migration.PermissionsResolverManager.inGroup(PermissionsResolverManager.java:106)
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlugin.inGroup(WorldGuardPlugin.java:219)
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener.onPlayerJoin(WorldGuardPlayerListener.java:313)
    2554-04-10 16:40:21 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:204)
    2554-04-10 16:40:21 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2554-04-10 16:40:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2554-04-10 16:40:21 [SEVERE] java.lang.LinkageError: com/nijiko/permissions/PermissionHandler
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.bukkit.migration.NijiPermissionsResolver.inGroup(NijiPermissionsResolver.java:77)
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.bukkit.migration.PermissionsResolverManager.inGroup(PermissionsResolverManager.java:106)
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlugin.inGroup(WorldGuardPlugin.java:219)
    2554-04-10 16:40:21 [SEVERE]     at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener.onPlayerJoin(WorldGuardPlayerListener.java:317)
    2554-04-10 16:40:21 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:204)
    2554-04-10 16:40:21 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2554-04-10 16:40:21 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2554-04-10 16:40:21 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2554-04-10 16:40:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v2.2.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/bukkit/plugin/java/PluginClassLoader) previously initiated loading for a different type with name "com/nijiko/permissions/PermissionHandler"
        at net.centerleft.localshops.Commands.canUseCommand(Commands.java:321)
        at net.centerleft.localshops.Commands.printHelp(Commands.java:391)
        at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:221)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2554-04-10 16:41:39 [SEVERE] java.lang.LinkageError: loader constraint violation: loader (instance of org/bukkit/plugin/java/PluginClassLoader) previously initiated loading for a different type with name "com/nijiko/permissions/PermissionHandler"
    2554-04-10 16:41:39 [SEVERE]     at com.fullwall.Gastronomic.GastronomicPermissions.permission(GastronomicPermissions.java:41)
    2554-04-10 16:41:39 [SEVERE]     at com.fullwall.Gastronomic.GastronomicPermissions.hunger(GastronomicPermissions.java:67)
    2554-04-10 16:41:39 [SEVERE]     at com.fullwall.Gastronomic.PlayerHunger.updateHunger(PlayerHunger.java:46)
    2554-04-10 16:41:39 [SEVERE]     at com.fullwall.Gastronomic.Gastronomic$1.run(Gastronomic.java:450)
    2554-04-10 16:41:39 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2554-04-10 16:41:39 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2554-04-10 16:41:39 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2554-04-10 16:41:39 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2554-04-10 16:41:39 [SEVERE] Unexpected exception
    java.lang.LinkageError: loader constraint violation: loader (instance of org/bukkit/plugin/java/PluginClassLoader) previously initiated loading for a different type with name "com/nijiko/permissions/PermissionHandler"
        at com.fullwall.Gastronomic.GastronomicPermissions.permission(GastronomicPermissions.java:41)
        at com.fullwall.Gastronomic.GastronomicPermissions.hunger(GastronomicPermissions.java:67)
        at com.fullwall.Gastronomic.PlayerHunger.updateHunger(PlayerHunger.java:46)
        at com.fullwall.Gastronomic.Gastronomic$1.run(Gastronomic.java:450)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Any help please? Sorry for massive post.
     
  18. Offline

    JackTDawson

    I have same problem. NULL written everywhere. I even did a fresh CB670 and Newest 2.6 Permissions .. both installed only and boom. It reconverts the YML file every time I shut down the server. It actually rewrites this file. So even if you update the file and reload permissions, it wont hold because it only reads the file once and then re-writes it back out as it was previously read. It also messes up the format once the file is written back out.

    With the older 2.5.5 version it didn't re-write the file every time you shut down the server. And you could update it by reloading the plugin. But now with all the changes, nothing is working and I had to shut my server down because grievers starting getting same rights as mods. Yes, I know. waaaa. i'm whining.. sorry.. Try listening to 20 14 year olds who are whining because they are being grieved.

    I'm sure the creator is aware of the problem and is working on it, but until then, don't bother with this plugin until its fixed.
     
  19. Offline

    rcjrrjcr

    Well, sorry about the messed up format. Don't blame TheYeti; my pull request did that.

    You shouldn't reload config files by reloading the entire plugin. Instead, use "/pr -reload all".

    The NULLs are side effects of how Bukkit saves YAML data. You can look at the source of Configuration and Configuration.class to see how it works. The file is loaded as a Map<String, Object>, and because nodes without data are loaded as NULL, they are saved as "null".

    EDIT: Maybe I should send a pull request to Bukkit fixing these issues.
     
  20. Offline

    JackTDawson

    The Pre-Reload doesn't work. I never have gotten it to work. I have always had to be forced to use the Essentials reload feature which did work until version 2.6 of Permissions came out. ( NOTE : I said 2.5.5 worked just fine. ) And the NULL might be whats causing the permissions issue. I agree there. The problem is, the plugin might be "assuming" that NULL is the next option in the YML file. In fact, YML comes up with no errors when I tested it. I am guessing that the plugin is reading those as a NAME or some other parameter.

    Edit : I agree, it could be the latest CB670 causing this. However I tried an earlier version and it crapped out on me with JAVA errors. So I couldn't exactly recommend going backwards.

    Edit 2 : What I find strange is none of the other plugins write out a NULL where as only the permissions plugin does this.
     
  21. Offline

    rcjrrjcr

    The problem here is Bukkit's Configuration class. It's more or less the same through most of the builds. It uses the default YAML dumping style, which dumps nulls as "null". As Java's Map classes are designed to return null if the key doesn't exist or has no value, the key's value gets saved as "null".

    Example:
    Show Spoiler

    This YAML file
    Code:
    Test:
        Something: 'blah'
        AnotherThing:
    
    is read into memory as
    Code:
    [ "Test -> ["Something" -> "blah", "AnotherThing -> null] ]
    
    where "x -> y" indicates that x maps to y, and "[]" denoting a map.
    The map, when saved, keeps the null as an actual value, resulting in:
    Code:
    Test:
        Something: blah
        AnotherThing: null
    

    I'm working on a fix now. I will send it to the Bukkit team and hope they incorporate it into the RBs.

    EDIT: Strings being unquoted is another side effect I'm working on.
     
  22. Offline

    JackTDawson

    I patiently will wait and thank you for addressing this concern that I am sure many of us have.

    I had to tell some folks that "Hey look, the creators do this in their spare time and sometimes we just have to weather the storm. They are not getting paid to do this.."

    So again, thanks for the hard work.
     
    rcjrrjcr likes this.
  23. Just updated my server to 670, and permissions to 2.6, now whenever someone places anything, this gets literally spammed in the console:

    Code:
    13:13:40 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
        at com.nijiko.permissions.Control.getGroups(Control.java:625)
        at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:43)
        at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.java:344)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        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:75)
        at net.minecraft.server.ItemStack.a(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
     
  24. Offline

    krockobil


    i've the same problems.. i checked earlyer in the tread for others that posted their plugins.. and this are the ones that matched : ecoCreature, Lockette, PermissionsPlus, WorldEdit.
    might help.. i will keep on trying :)
     
  25. Offline

    JackTDawson

    I had this problem too when I updated to 670 and permissions 2.6. I found out it was my worldguard causing this issue. I removed worldguard and world edit and the java errors went away. I also had to take away essentials eventually because without the permissions file working, essentials became useless.
     
  26. Offline

    rcjrrjcr

    For those of you getting this error, I isolated the problem to this part of the code
    Code:
    if (Default && (this.WorldBase.get(world) == null ? "" == null : this.WorldBase.get(world).equals(""))) {
            this.WorldBase.put(world, key.toLowerCase());
    }
    
    The if statement's condition somehow prevents the default group from being stored. I'm trying to work out what it is supposed to do and actually is doing.
     
    Tekhawk likes this.
  27. Offline

    JackTDawson


    Now I change the name of my default group. Is this still going to be allowed ?

    Here is an Example :



    plugin:
    permissions:
    system: noobie
    copies:

    groups:
    noobie:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    permissions:

    Yournolongernoobie:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
     
  28. Offline

    Tekhawk

    Thanks this has been making my head hurt all night lol
     
  29. Offline

    jeddeliso

    GUYS, btw, i found a CONFLICT with the new craftbook3.0alpha2 , which was causing the "You do not have permissions to do this" and yea, hope the answers most of your questions. revert to craftbook3.0alpha1
     
  30. Offline

    Tekhawk

    It is not a conflict.. you need to add the nodes

    - craftbook.mech.bridge
    - craftbook.mech.cauldron
    - craftbook.mech.elevator
    - craftbook.mech.gate
    - craftbook.mech.lift

    to your baseline group
     
    Kirbyn likes this.
  31. Offline

    rcjrrjcr

    @JackTDawson Okay. I just finished coding the fixes into Bukkit. I can't solve the quote removal problem properly; if I try to make SnakeYAML put quotes around all string, nodes also get quoted:
    Example:
    Show Spoiler

    Original:
    Code:
    Test:
        SomeNode: 'lol'
    
    Current Bukkit:
    Code:
    Test:
        SomeNode: lol
    
    Failed fix:
    Code:
    'Test':
        'SomeNode': 'lol'
    

    It's even messier than without quotes, so I left that out. The null problem got fixed though. I will be submitting a pull request to Bukkit soon.

    EDIT: Submitted.
     
Thread Status:
Not open for further replies.

Share This Page