Plugin Help Permissions Help?...PLZ

Discussion in 'Plugin Help/Development/Requests' started by TheCrookedPainting, Apr 14, 2015.

Thread Status:
Not open for further replies.
  1. ok i tried running a bukkit server on bukkit snapshot 1.8
    and every time I try to install a permission plugin
    and every time I actually do it gives me billions of warnings
    and to be completely honest it's all gibberish to me can somebody please help i've watched 10 videos each for different permissions plugins and it making me mad
    This is the log

    [Server thread/WARN]: org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in 'string', line 7, column 7:
    priority: '300'
    ^
    expected <block end>, but found Scalar
    in 'string', line 13, column 18:
    priority: '200'
    ^

    [20:49:34] [Server thread/WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57)
    [20:49:34] [Server thread/WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226)
    [20:49:34] [Server thread/WARN]: at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169)
    [20:49:34] [Server thread/WARN]: at de.bananaco.bpermissions.imp.YamlConfiguration.load(YamlConfiguration.java:17)
    [20:49:34] [Server thread/WARN]: at de.bananaco.bpermissions.imp.YamlWorld.loadUnsafe(YamlWorld.java:117)
    [20:49:34] [Server thread/WARN]: at de.bananaco.bpermissions.imp.YamlWorld$1.run(YamlWorld.java:82)
    [20:49:34] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R2.scheduler.CraftTask.run(CraftTask.java:53)
    [20:49:34] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349)
    [20:49:34] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:677)
    [20:49:34] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:336)
    [20:49:34] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:626)
    [20:49:34] [Server thread/WARN]: at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:534)
    [20:49:34] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
    [20:49:34] [Server thread/WARN]: Caused by: while parsing a block mapping
    in 'string', line 7, column 7:
    priority: '300'
    ^
    expected <block end>, but found Scalar
    in 'string', line 13, column 18:
    priority: '200'
    ^

    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:570)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:226)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:231)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:231)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:231)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
    [20:49:34] [Server thread/WARN]: at org.yaml.snakeyaml.Yaml.load(Yaml.java:400)
    [20:49:34] [Server thread/WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    [20:49:34] [Server thread/WARN]: ... 12 more
     
  2. Offline

    nverdier

  3. Im new to this what's a parser
     
  4. Offline

    nverdier

    @TheCrookedPainting I linked you to one. It will show you where your errors are.

    Make sure you tag or quote me if you want to be sure I see your post!
     
  5. Offline

    BladeFireTurtle

    You basically paste your yaml code into the parser and it will check for errors. For instance you may have used a tab instead of spaces or you might have forgot a semicolon. If it throws an error it'll tell you what line to fix.

    Edit: Nvm @nverdier ninja'd me :rolleyes:
     
  6. I changed my permissions plugin to PEX and everything worked fine untill i tried adding prefixes
    so yea


    @nverdier can you please translate this into English for me please
    or @BladeFireTurtle
    ERROR
    while scanning a simple key
    in "<unicode string>", line 15, column 7:
    rank:'200'
    ^
    could not found expected ':'
    in "<unicode string>", line 16, column 7:
    rank-ladder:Main
    ^
     
    Last edited: Apr 15, 2015
  7. Offline

    ForsakenRealmz

    @TheCrookedPainting Post your entire permissions.yml here. The parsers work, but sometimes the error can be found a line or two away from where it's pointing at (At least from my experience).
     
  8. @ForsakenRealmz


    this is my in progress permissions.yml

    groups:
    Garter:
    options:
    default: true
    rank: '300'
    rank-ladder: Main
    prefix: '&6[&aGarter&6]'
    permissions:
    - modifyworld.*
    - iConomy.money
    - setspawn.spawn
    CornSnake:
    options:
    default: false
    rank:'200'
    rank-ladder:Main
    prefix:'&6[&3CornSnake&6]
    permissions:
    - modifyworld.*
    inheritance:
    - Garter
    Anaconda:
    options:
    default: false
    rank: '100'
    rank-ladder: Main
    permissions:
    - modifyworld.*
    - worldedit.*
    inheritance:
    - CornSnake
    schema-version: 1
    users:
    8a8a6d02-baff-48d8-8c1c-9850acc84e6a:
    group:
    - Anaconda
    options:
    name: peacemancool2
     
  9. Offline

    ForsakenRealmz

    @TheCrookedPainting Think you could upload it to Pastebin.com instead? Or put code tags around it :p

    **Edit**
    I went ahead and debugged the YAML. I recreated it from scratch, and it's working without bugs. Go ahead and take this, and compare it to yours. See what you did may have done wrong. I have a feeling it was something with spacing!
    http://pastebin.com/xVf2sns3
     
    Last edited: Apr 15, 2015
  10. Last edited by a moderator: Apr 16, 2015
  11. Offline

    ForsakenRealmz

    @TheCrookedPainting Sorry that is my bad for not adding the default: true under the options. Here is an updated version: http://pastebin.com/eyz7wUyX (You may want to run this through a YAML parser before placing it back into your permissions.yml. For some reason the spacing is being messed with when I (we) submit it into pastebin).

    As for the prefixes... Do you use Essentials? If so, the prefixes should be working. If you do not use Essentials then you may need a plugin like iChat to handle your prefixes.
     
    Last edited: Apr 16, 2015
  12. Offline

    nverdier

    @ForsakenRealmz Just sayin', it's probably better to let him do it so that he doesn't have to come back he again to get another one fixed.
     
  13. Offline

    ForsakenRealmz

    Yeah... I know what you mean lol. I'll let him solve the spacing issues pastebin is spitting out?
     
Thread Status:
Not open for further replies.

Share This Page