Help with bPermissions (YAML errors)

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

  1. Offline

    Eli_Jah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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:
    1. users:
    2.     elijah3399:
    3.     permissions:
    4.     groups:
    5.     - Admin
    6.     meta:
    7.       prefix: '&8Test'
    8.       suffix: '&8Ze Owner'
    9.     robinshade:
    10.     permissions:
    11.     groups:
    12.     - Admin
    13.     meta:
    14.       suffix: '&8Ze Warlord'
    15.     zelphie:
    16.     permissions:
    17.     groups:
    18.     - Admin
    19.     meta:
    20.       suffix: '&8Ze Peacemaker'
    21.     canadalivi:
    22.     permissions:
    23.     - bPermissions.admin
    24.     groups:
    25.     - Moderators
    26.     meta:
    27.         suffix: ''
    28.     failmineman:
    29.     permissions:
    30.     - bPermissions.admin
    31.     groups:
    32.     - Moderators
    33.     meta:
    34.         suffix: ''
    35.     liechensteinxd:
    36.     permissions:
    37.     - bPermissions.admin
    38.     groups:
    39.     - Moderators
    40.     meta:
    41.         suffix: ''
    42.     stixandstones12:
    43.     permissions:
    44.     - bPermissions.admin
    45.     groups:
    46.     - Moderators
    47.     meta:
    48.         suffix: ''
    49.     a_surtees:
    50.     permissions:
    51.     - bPermissions.admin
    52.     groups:
    53.     - Moderators
    54.     meta:
    55.         suffix: ''
    56.     bovoglio7:
    57.     permissions:
    58.     groups:
    59.     - Members
    60.     meta:
    61.         suffix: ''
    62.     fishswimmer:
    63.     permissions:
    64.     groups:
    65.     - Members
    66.     meta:
    67.         suffix: ''
    68.     davetron12:
    69.     permissions:
    70.     groups:
    71.     - Members
    72.     meta:
    73.         suffix: ''
    74.     gusred:
    75.     permissions:
    76.     groups:
    77.     - Members
    78.     meta:
    79.         suffix: ''
    80.     mikedeedee:
    81.     permissions:
    82.     groups:
    83.     - Members
    84.     meta:
    85.         suffix: ''
    86.     noaorulez:
    87.     permissions:
    88.     groups:
    89.     - Members
    90.     meta:
    91.         suffix: ''
    92.     thephantom00:
    93.     permissions:
    94.     groups:
    95.     - Members
    96.     meta:
    97.         suffix: ''
    98.     treefrog13:
    99.     permissions:
    100.     groups:
    101.     - Members
    102.     meta:
    103.         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 (Text):
    1. 08:38 PM [INFO] [bPermissions] Enabling bPermissions v2.9.2
    2. 08:38 PM [INFO] [bPermissions] Loading world: World One
    3. 08:38 PM [INFO] [bPermissions] Loading world: World One_nether
    4. 08:38 PM [INFO] [bPermissions] Loading world: World One_the_end
    5. 08:38 PM [SEVERE] line 1 of groups.yml contained a Yaml error. A fix was attempted.
    6. 08:38 PM [SEVERE] line 3 of groups.yml contained a Yaml error. A fix was attempted.
    7. 08:38 PM [SEVERE] line 17 of groups.yml contained a Yaml error. A fix was attempted.
    8. 08:38 PM [SEVERE] line 19 of groups.yml contained a Yaml error. A fix was attempted.
    9. 08:38 PM [SEVERE] line 22 of groups.yml contained a Yaml error. A fix was attempted.
    10. 08:38 PM [SEVERE] line 26 of groups.yml contained a Yaml error. A fix was attempted.
    11. 08:38 PM [SEVERE] line 35 of groups.yml contained a Yaml error. A fix was attempted.
    12. 08:38 PM [SEVERE] line 37 of groups.yml contained a Yaml error. A fix was attempted.
    13. 08:38 PM [SEVERE] line 53 of groups.yml contained a Yaml error. A fix was attempted.
    14. 08:38 PM [SEVERE] line 62 of groups.yml contained a Yaml error. A fix was attempted.
    15. 08:38 PM [SEVERE] org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping in "<string>", line 1, column 1:    default: Newbies    ^
    16. expected <block end>, but found Value in "<string>", line 2, column 1:    :    ^
    17. 08:38 PM [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
    18. 08:38 PM [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
    19. 08:38 PM [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
    20. 08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.YamlConfiguration.load(YamlConfiguration.java:17)
    21. 08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.DefaultWorld.loadUnsafe(DefaultWorld.java:91)
    22. 08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.DefaultWorld.load(DefaultWorld.java:57)
    23. 08:38 PM [SEVERE] at de.bananaco.bpermissions.imp.Permissions.onEnable(Permissions.java:81)
    24. 08:38 PM [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    25. 08:38 PM [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    26. 08:38 PM [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    27. 08:38 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    28. 08:38 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    29. 08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371)
    30. 08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358)
    31. 08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
    32. 08:38 PM [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
    33. 08:38 PM [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    34. 08:38 PM [SEVERE] Caused by: while parsing a block mapping in "<string>", line 1, column 1:    default: Newbies    ^
    35. expected <block end>, but found Value in "<string>", line 2, column 1:    :    ^
    36. 08:38 PM [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575)
    37. 08:38 PM [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    38. 08:38 PM [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    39. 08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    40. 08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    41. 08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    42. 08:38 PM [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    43. 08:38 PM [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    44. 08:38 PM [SEVERE] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    45. 08:38 PM [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    46. 08:38 PM [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
    47. 08:38 PM [SEVERE] ... 16 more
    What am I doing wrong?
     
  2. Offline

    ImminentFate

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    see this section here:
    PHP:
    1. users:
    2.     elijah3399:
    3.     permissions:
    4.     groups:
    5.     - Admin
    6.     meta:
    7.       prefix: '&8Test'
    8.       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:
    1. users:
    2.     elijah3399:
    3.       permissions:
    4.       groups:
    5.       - Admin
    6.       meta:
    7.         prefix: '&8Test'
    8.         suffix: '&8Ze Owner'
     
  3. Offline

    ZeroZX4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    My BukkitDev Profile
    My Plugins (18)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks for helping, I only saw this just now :) have a like!
     
  6. Offline

    ZeroZX4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    My BukkitDev Profile
    My Plugins (18)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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!
     

Share This Page