Help with bPermissions (YAML errors)

Discussion in 'Bukkit Help' started by Eli_Jah, May 7, 2012.

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

    Eli_Jah

    Hello!

    I recently started the setup of a bukkit server. I have set up all my permissions with bPermissions, and my user.yml file looks like this:

    HTML:
    users:
        elijah3399:
        permissions:
        groups:
        - Admin
        meta:
          prefix: '&8Test'
          suffix: '&8Ze Owner'
        robinshade:
        permissions:
        groups:
        - Admin
        meta:
          suffix: '&8Ze Warlord'
        zelphie:
        permissions:
        groups:
        - Admin
        meta:
          suffix: '&8Ze Peacemaker'
        canadalivi:
        permissions:
        - bPermissions.admin
        groups:
        - Moderators
        meta:
            suffix: ''
        failmineman:
        permissions:
        - bPermissions.admin
        groups:
        - Moderators
        meta:
            suffix: ''
        liechensteinxd:
        permissions:
        - bPermissions.admin
        groups:
        - Moderators
        meta:
            suffix: ''
        stixandstones12:
        permissions:
        - bPermissions.admin
        groups:
        - Moderators
        meta:
            suffix: ''
        a_surtees:
        permissions:
        - bPermissions.admin
        groups:
        - Moderators
        meta:
            suffix: ''
        bovoglio7:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        fishswimmer:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        davetron12:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        gusred:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        mikedeedee:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        noaorulez:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        thephantom00:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
        treefrog13:
        permissions:
        groups:
        - Members
        meta:
            suffix: ''
    I have ran it through a online yaml decoder, and it comes out fine with no errors. but when I run the server I get this:

    Code:
    08:38 PM [INFO] [bPermissions] Enabling bPermissions v2.9.2
    08:38 PM [INFO] [bPermissions] Loading world: World One
    08:38 PM [INFO] [bPermissions] Loading world: World One_nether
    08:38 PM [INFO] [bPermissions] Loading world: World One_the_end
    08:38 PM [SEVERE] line 1 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 3 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 17 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 19 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 22 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 26 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 35 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 37 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 53 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 62 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping in "<string>", line 1, column 1:    default: Newbies    ^
    expected <block end>, but found Value in "<string>", line 2, column 1:    :    ^
    08:38 PM [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    08:38 PM [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    08:38 PM [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
    08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.YamlConfiguration.load(YamlConfiguration.java:17)
    08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.DefaultWorld.loadUnsafe(DefaultWorld.java:91)
    08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.DefaultWorld.load(DefaultWorld.java:57)
    08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.Permissions.onEnable(Permissions.java:81)
    08:38 PM [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    08:38 PM [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    08:38 PM [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    08:38 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    08:38 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371)
    08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358)
    08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
    08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
    08:38 PM [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    08:38 PM [SEVERE] Caused by: while parsing a block mapping in "<string>", line 1, column 1:    default: Newbies    ^
    expected <block end>, but found Value in "<string>", line 2, column 1:    :    ^
    08:38 PM [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    08:38 PM [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    08:38 PM [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    08:38 PM [SEVERE] ... 16 more 
    What am I doing wrong?
     
  2. Offline

    ImminentFate

    see this section here:
    PHP:
    users:
        
    elijah3399:
        
    permissions:
        
    groups:
        - 
    Admin
        meta
    :
          
    prefix'&8Test'
          
    suffix'&8Ze Owner'
    It, and all other user sections are wrong. you forgot to space out permissions and groups, and meta from the user name.
    It should look like
    PHP:
    users:
        
    elijah3399:
          
    permissions:
          
    groups:
          - 
    Admin
          meta
    :
            
    prefix'&8Test'
            
    suffix'&8Ze Owner'
     
  3. Offline

    ZeroZX4

    08:38 PM [SEVERE] org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping in "<string>", line 1, column 1: default: Newbies ^
    expected <block end>, but found Value in "<string>", line 2, column 1: : ^
     
    codename_B likes this.
  4. Offline

    Eli_Jah

    Thank you for the help! I was able to re-do the users file with your instructions, and it worked fine!
     
  5. Offline

    codename_B

    Thanks for helping, I only saw this just now :) have a like!
     
  6. Offline

    ZeroZX4

    i dont need any likes cause they do nothing

    but anyway i just seen this

    A fix was attempted.
    08:38 PM [SEVERE] line 3 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 17 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 19 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 22 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 26 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 35 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 37 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 53 of groups.yml contained a Yaml error. A fix was attempted.
    08:38 PM [SEVERE] line 62 of groups.yml contained a Yaml error. A fix was attempted.

    im starting to think your permissions got potential and soon i gonna test it and see what it got
     
  7. Offline

    codename_B

    It auto-detects tabs and replaces them with 4 spaces.

    Let me know what you think and also I'm open to suggestions for improving it!
     
Thread Status:
Not open for further replies.

Share This Page