[REQ HELP!]Permissions YAML ERROR.

Discussion in 'Bukkit Help' started by Jimmy, Jul 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Jimmy

    Show Spoiler
    ##
    # 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
    ##
    # 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:
    #
    # - '*'
    ##
    # To exempt a node use the - prefix like so:
    # - '-foo.bar'
    ##
    # prefix: and suffix: do not do anything on their own. You need another outside plugin
    # such as iChat or HeroChat in order for these to do anything.
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'foo.bar'
    - 'simple.hat'
    - 'oceanworld.enter'
    - 'oceanworld.leave'
    - 'lavafurnace.player.build'
    - 'lavafurnace.player.fuel'
    - 'lavafurnace.player.destroy'
    - 'lavafurnace.player.use'
    - 'lavafurnace.chests'
    - 'SignHeal.place'
    - 'appleseed.plant.*'
    - 'appleseed.infinite.cap'
    - 'appleseed.infinite.plant'
    - 'appleseed.infinite.fertilizer'
    - 'appleseed.wand'
    - 'monsterhatchery.setspawner'
    - 'monsterhatchery.craftrune'
    - 'showcase.basic'
    - 'showcase.finite'
    - 'showcase.buy.*'
    - 'lc.level.*'
    - 'lc.shout'
    - 'chaircraft.sit'
    - 'AetaPriest.*'
    - 'falsebook.anyic'
    - 'nethrar.use'
    - 'oredetector.use'
    - 'oredetector.type'
    - 'diamonddetector.use'
    - 'Armor.*'
    - '-Armor.equiparmor'
    - 'GoldenRevive.Revive'
    - 'jobs.join.*'
    - 'colorme.list'
    - 'colorme.self'
    - 'portalstick.command.portal'
    - 'portalstick.teleport'
    - 'sprint.highjump'
    - 'localshops.buysell'
    - 'localshops.manage'
    - 'localshops.manage.owner'
    - 'localshops.create'
    - 'localshops.move'
    - 'localshops.destroy'
    - 'MobBounty.mb'
    - 'biomemessage.biome.*'
    - 'backpack.toggle'
    - 'backpack.open'
    - 'backpack.saveactionbar'
    - 'backpack.maxpages.9'
    - 'iobookcase.canread'
    - 'iobookcase.canwrite'
    - 'musiccraft.use'
    - 'elevators.builder'
    - 'elevators.advancedbuilder'
    - 'elevators.operator'
    - 'foo.bar'
    - 'rpgcraft.money'
    - 'rpgcraft.bank.bankers'
    - 'general.spawn'
    - 'jail.usercmd.jailstatus'
    - 'monstertamer.player.catch'
    - 'monstertamer.player.check'
    - 'monstertamer.player.befriend'
    - 'monstertamer.player.target'
    - 'monstertamer.player.release'
    - 'monstertamer.player.whistle'
    - 'monstertamer.player.follow'
    - 'monstertamer.player.wait'
    - 'monstertamer.player.select'
    - 'movecraft.*'
    - 'skypirates.player.enable'
    - 'skypirates.modes.*'
    - 'skypirates.item.*'
    - 'skypirates.*'
    - '-skypirates.admin.*'
    - 'blockhead.hat'
    - 'blockhead.hat.items'
    - 'blockhead.hat.give.players.items'
    - 'blockhead.hat.give.groups.items'
    - 'iConomy.payment'
    - 'iConomy.access'
    - 'iConomy.rank'
    - 'iConomy.list'
    - 'iConomy.withdraw'
    - 'iConomy.deposit'
    - 'iConomy.reset'
    - 'iConomy.bank.*'
    - 'mcmmo.skills.*'
    - 'mcmmo.motd'
    - 'mcmmo.chat.partychat'
    - 'mcmmo.chat.adminchat'
    - 'mcmmo.commands.ptp'
    - 'mcmmo.commands.party'
    - 'mcmmo.commands.whois'
    - 'mcmmo.commands.myspawn'
    - 'mcmmo.commands.setmyspawn'
    - 'mcmmo.ability.*'
    - 'mobRider.players'
    - 'mobRider.command.stop'
    - 'mobRider.monsters'
    - 'mobRider.animals'
    - 'mobRider.command.go'
    - 'mobRider.command.attack'
    - 'mobRider.command.goto'
    - 'mobRider.*'
    - 'general.spawn.set'
    - 'general.home.set'
    - 'general.home'
    - 'mcmmo.regeneration'
    - 'NetherGate.portal.use'
    - 'NetherGate.portal.create'
    - 'NetherGate.portal.create.platform'
    - 'NetherGate.portal.create.frame'
    - 'NetherGate.portal.create.airPocket'
    - 'NetherGate.portal.create.portal'
    - 'essentials.help'
    - 'essentials.motd'
    - 'essentials.sethome'
    - 'BackupPlugin.backup'
    - 'essentials.spawn'
    - 'essentials.home'
    - 'essentials.tpaccept'
    - 'essentials.tpdeny'
    - 'essentials.nethers'
    - 'essentials.back'
    - 'general.sleep'
    - 'general.bed'
    - 'general.*'
    - '-general.time'
    - 'general.tp'
    - 'general.spawn'
    - 'general.helpop'
    - 'essentials.helpop'
    - 'musiccraft.*'
    - 'wormhole.use.sign'
    - 'wormhole.remove.own'
    - 'wormhole.use.dialer'
    - 'wormhole.remove.own'
    - 'wormhole.build'
    - 'essentials.warp'
    - 'general.playerlist'
    - 'essentials.list'
    - 'essentials.mail.*'
    - 'essentials.compass'
    - 'compasspointer.*'
    - 'wolfpound.use'
    - 'creaturebox.*'
    - '-creaturebox.give'
    - 'TentThis.commands.setOwnSchema'
    - 'sprint.allow'
    - 'WolfSpawn.release'
    - 'WolfSpawn.respawn'
    - 'essentials.tpa'
    - 'wolfnames.*'
    - 'WolfSpawn.spawnatplayer'
    - 'firelord.*'
    - '-firelord.admin'
    - 'herosneak.exempt'
    - 'herosneak.sneak'
    - 'icedrop.getdrop'
    - 'essentials.afk'
    - 'alchemicalcauldron.use'
    - 'sendgift.send'
    - 'torchmissile.SingleMode'
    - 'chestlock.own'
    - 'chestlock.lock'
    - 'chestlock.unlockable'
    - 'chestlock.coowner'
    - 'chestlock.usekey'
    - 'chestlock.free'
    - 'dropchest'
    - 'dropchest.create'
    - 'dropchest.remove'
    - 'dropchest.radius.set'
    - 'dropchest.which'
    - 'dropchest.filter'
    - 'dropchest.destroy'
    - 'cf.use.jump'
    - 'money2xp.user'
    - 'uQuest.CanQuest.*'
    - 'BOSEEconomy.common'
    - 'iJobs.user.*'
    - 'choptree.chop
    - 'hookshot.use'
    - 'door.shield'
    - 'mywolf.leash'
    - 'mywolf.chest'
    - 'mywolf.info'
    - 'mywolf.food'
    - 'mywolf.pickup'
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'

    This is my permissions config.
    Output

    ERROR: while parsing a block collection in "<unicode string>", line 41, column 13: - 'simple.hat' ^ expected <block end>, but found '<scalar>' in "<unicode string>", line 116, column 16: - 'iConomy.payment' ^
    I don't get what's wrong!! Urgent! :(
     
  2. Offline

    Stormbow

    Notepad2 to the rescue!! (Shows the line numbers. heh)

    Code:
    - '-skypirates.admin.*
    doesn't have the apostrophe at the end of it.

    Code:
    - '-skypirates.admin.*'
    is how it should look.
     
  3. Offline

    Jimmy

    But it says something is wrong with simple.hat
    Also, I fixed it and it still has the problem ;(
     
  4. Offline

    Stormbow

    Oh, woops. I missed that one.

    Code:
    - 'foo.bar'
    doesn't actually exist in any plugin I'm aware of. That's what you have on line 41, just before the simple.hat permission. Try removing that and see what happens.
     
  5. Offline

    Jimmy

    Does that make it have an error? s:
     
  6. Offline

    Stormbow

    Well, if it's looking for something that doesn't exist, it could be causing the error. ;)

    foo.bar was just a filler permission used to show how the nodes would be listed in one of the sample config files.
     
  7. Offline

    Jimmy

    simple.hat exists and it has the error
     
  8. Offline

    Stormbow

    Did you remove the ghost (not an actual permission) foo.bar? If not, remove that line.
     
  9. Offline

    Jimmy

    Yes I did.
    I used a YAML Parser and it says all of the nodes have errors.. O .O Btw I converted from 2.x and copy and pasted.. I just added the spaces and - 'bla.*'
     
  10. Offline

    Stormbow

    Ok, paste the new error message.
     
  11. Offline

    Jimmy

    Show Spoiler

    00:36:22 [INFO] Entities enhanced[0] subclassed[2]
    00:36:22 [SEVERE] while parsing a block collection
    in "<reader>", line 41, column 13:
    - 'simple.hat'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 224, column 16:
    - 'hookshot.use'
    ^

    00:36:22 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequen
    ceEntry.produce(ParserImpl.java:520)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
    Impl.java:163)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
    rImpl.java:148)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceN
    ode(Composer.java:203)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:158)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(
    Composer.java:122)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
    mposer.java:105)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
    gleData(BaseConstructor.java:124)
    00:36:22 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    00:36:22 [SEVERE] at com.nijiko.configuration.NotNullConfiguration.load(No
    tNullConfiguration.java:54)
    00:36:22 [SEVERE] at com.nijiko.data.YamlGroupStorage.reload(YamlGroupStor
    age.java:178)
    00:36:22 [SEVERE] at com.nijiko.data.YamlGroupStorage.<init>(YamlGroupStor
    age.java:29)
    00:36:22 [SEVERE] at com.nijiko.data.YamlCreator.getGroupStorage(YamlCreat
    or.java:58)
    00:36:22 [SEVERE] at com.nijiko.data.StorageFactory.getGroupStorage(Storag
    eFactory.java:129)
    00:36:22 [SEVERE] at com.nijiko.permissions.ModularControl.forceLoadWorld(
    ModularControl.java:93)
    00:36:22 [SEVERE] at com.nijiko.permissions.ModularControl.loadWorld(Modul
    arControl.java:84)
    00:36:22 [SEVERE] at com.nijiko.permissions.ModularControl.load(ModularCon
    trol.java:105)
    00:36:22 [SEVERE] at com.nijikokun.bukkit.Permissions.Permissions.setupPer
    missions(Permissions.java:186)
    00:36:22 [SEVERE] at com.nijikokun.bukkit.Permissions.Permissions.onLoad(P
    ermissions.java:139)
    00:36:22 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:131)
    00:36:22 [SEVERE] at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer
    .java:97)
    00:36:22 [SEVERE] at net.minecraft.server.ServerConfigurationManager.<init
    >(ServerConfigurationManager.java:51)
    00:36:22 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:132)
    00:36:22 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:335)
    00:36:22 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    00:36:22 [SEVERE] [Permissions] Unable to load permission data.
    00:36:22 [SEVERE] [Permissions] Shutting down Permissions due to error(s).
    00:36:22 [INFO] [Permissions] (Yeti) was initialized.
    00:36:22 [INFO] Preparing level "world"

    Also I have heroes and I need to fix permissons or something cause this comes along -.-
    Show Spoiler
    00:37:02 [SEVERE] Could not pass event CUSTOM_EVENT to Heroes
    java.lang.NoClassDefFoundError: com/nijiko/permissions/StorageReloadEvent
    at com.herocraftonline.dev.heroes.HPermissionsListener.onCustomEvent(HPe
    rmissionsListener.java:29)
    at org.bukkit.plugin.java.JavaPluginLoader$87.execute(JavaPluginLoader.j
    ava:855)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at com.narrowtux.DropChest.DropChestItem.addItem(DropChestItem.java:166)

    at com.narrowtux.DropChest.EntityWatcher.run(EntityWatcher.java:63)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >

    When I remove Dropchest, it gives me random crap and it just removes the word Dropchest.
     
  12. Offline

    Stormbow

    foo.bar also appears before the
    Code:
    - 'rpgcraft.money'
    line.


    Remove the foo.bar permissions and the bar.foo permission that you also left in the config sample file you expanded on when you added your other permissions.

    foo.bar and bar.foo aren't real permissions.

    Code:
    - 'choptree.chop
    
    is missing the apostrophe on the end.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  13. Offline

    Jimmy

    Oh my god..
    It works :D Thanks!
    heres an internet -hands you an invisible internets-[diamond]
     
    Stormbow likes this.
  14. Offline

    Stormbow

    Glad I could help. :D My first time trying to help someone here. LOL
     
Thread Status:
Not open for further replies.

Share This Page