Stupid config file is trying to troll me

Discussion in 'Plugin Development' started by bramhaag, Feb 15, 2014.

Thread Status:
Not open for further replies.
  1. Hi guys,

    I was busy updating my plugin. But an error with the config showed up. I cannot solve this one by my self, because I don't see the error in the config! I hope you guys can help me out.

    Error:
    Code:
    [08:26:45 ERROR]: Cannot load configuration from stream
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block ma
    pping
    in 'string', line 13, column 1:
        debug-mode: true
        ^
    expected <block end>, but found Anchor
    in 'string', line 103, column 18:
        vanish-message: '&eYou are now vanished!'
                        ^
     
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
    nfiguration.java:55) ~[spigot.jar:git-Spigot-1319]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
    n.java:149) ~[spigot.jar:git-Spigot-1319]
            at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Yam
    lConfiguration.java:204) [spigot.jar:git-Spigot-1319]
            at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:154) [
    spigot.jar:git-Spigot-1319]
            at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:144) [spi
    got.jar:git-Spigot-1319]
            at me.bramhaag.hidehub.HideHub.HideHub.onEnable(HideHub.java:48) [HideHu
    b.jar:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [sp
    igot.jar:git-Spigot-1319]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:350) [spigot.jar:git-Spigot-1319]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:390) [spigot.jar:git-Spigot-1319]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.jav
    a:460) [spigot.jar:git-Spigot-1319]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.
    java:380) [spigot.jar:git-Spigot-1319]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:79
    4) [spigot.jar:git-Spigot-1319]
            at org.bukkit.Bukkit.reload(Bukkit.java:279) [spigot.jar:git-Spigot-1319
    ]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    24) [spigot.jar:git-Spigot-1319]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:17
    5) [spigot.jar:git-Spigot-1319]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe
    r.java:704) [spigot.jar:git-Spigot-1319]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(Craf
    tServer.java:691) [spigot.jar:git-Spigot-1319]
            at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:
    309) [spigot.jar:git-Spigot-1319]
            at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2
    74) [spigot.jar:git-Spigot-1319]
            at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5
    62) [spigot.jar:git-Spigot-1319]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :469) [spigot.jar:git-Spigot-1319]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [spigot.jar:git-Spigot-1319]
    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapp
    ing; expected <block end>, but found Anchor;  in 'string', line 103, column 18:
        vanish-message: '&eYou are now vanished!'
                        ^
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:570) ~[spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~
    [spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
    ~[spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230) ~[spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159) ~
    [spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2) ~[spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    ~[spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:120) ~[spigot.jar:git-Spigot-1319]
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) ~[spigot.jar:gi
    t-Spigot-1319]
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:400) ~[spigot.jar:git-Spigot-1
    319]
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
    nfiguration.java:53) ~[spigot.jar:git-Spigot-1319]
            ... 21 more
    line 13, column 1:
    Code:
    debug-mode: true
    line 103, column 18:
    Code:
    vanish-message: '&eYou are now vanished!'
    Config:
    Code:
    ##########################
    ######HideHub Config######
    ##########################
     
    #Don't change this file unless you know what you're doing!
    #The Config file supports colour codes
    #On the bottom of the Config file is a list with all the colour codes
     
    ####################
    ##General Settings##
    ####################
    #Enable/disable debug mode
    debug-mode: true
     
    #Enable/disable auto updating via Gravity's updater
    auto-update: true
     
    #Enable Coloured messages in console
    color-logs: true
     
    #Clear inventory if you join the server
    clear-inv-on-join: true
     
    #The message when a player don't have the right permission to do things
    no-perms-message: '&cYou dont have permission to do that!'
     
    ########################
    ##Vanish-Item Settings##
    ########################
     
    #Gives you the vanish item when you join the server
    give-vanish-item-on-join: true
     
    #Can players without permission drop the vanish item?
    #true = they can
    #false = they cannot
    drop-vanish-item: false
     
    #Enable that players cannot be vanished if they have the permission node 'hh.bypass.vanish'
    enable-bypass-vanish: true
     
    #Set the time unit of the vanish item cooldown here
    #To set the unit to seconds, type 20
    #To set the unit to minutes, type 1200
    #To set the unit to hours, type 72000
    #Etc, ect.
    cooldown-unit: 20
     
    #Delay in seconds between the uses of vanishing players
    vanish-delay: 5
     
    #Custom names and descriptions(lores) for the player hide item
    #vanish-item: Item when all players are visible. DO NOT USE ITEM IDS. Use this: http://www.kiwike.se/wiki/index.php/Item_Names
    #vanish-item-name: Name of the item
    #vanish-item-lore: The description(lore) of the item
    vanish-item: 'WATCH'
    vanish-item-name: '&a--(Un)Vanish Players--'
    vanish-item-lore: '&fRight click to vanish/unvanish all the players'
     
    #The vanish message
    hide-player-message: '&eAll players are vanished'
     
    #The unvanish message
    show-player-message: '&eYou can see all players'
     
    #The vanish cooldown message (NOTE: YOU CAN USE '%time%' [WITHOUT QUOTES!] TO GET THE TIME FROM THE 'vanish-delay' OPTION!
    vanish-cooldown-message: '&cYou need to wait %time% seconds before you can use the clock again!'
     
    ################
    ##Pop settings##
    ################
     
    #Enable/disable the popping feature
    enable-pop: true
     
    #Enable/disable the timer to re-show to popped players
    reshow-pop-timer: false
     
    #Set the unit of time for the popped player re-show here
    #To set the unit to seconds, type 20
    #To set the unit to minutes, type 1200
    #To set the unit to hours, type 72000
    #Etc, ect.
    pop-reshow-unit: 20
     
    #The time before showing the popped players again (NOTE: THIS WILL ONLY WORK IF YOU HAVE 'reshow-pop-timer' ENABLED!)
    pop-reshow: 30
     
    #Re-show to popped players after the player relogged
    reshow-pop-on-rejoin: true
     
    #The message for the player who is popped (NOTE: YOU CAN USE '%popper%' [WITHOUT QUOTES] TO GET THE NAME OF THE POPPER!)
    popped-message: '&bYou have been popped by &3%popper%'
     
    #The message for the player who is popped (NOTE: YOU CAN USE '%popped%' [WITHOUT QUOTES] TO GET THE NAME OF THE POPPED PLAYER!)
    pop-player-message: '&bYou have popped &3%popped%
     
    ###################
    ##Vanish-settings##
    ###################
     
    #Message when the command vanish is executed
    vanish-message: '&eYou are now vanished!'
     
    #Message when the command unvanish is executed
    unvanish-message: '&eYou are now unvanished'
     
    #########################################################
    ################Minecraft colour codes list##############
    #########################################################
     
    #Black            = &0       
    #Dark blue        = &1        Red            = &c
    #Dark green    = &2        Light purple    = &d
    #Dark aqua        = &3        Yellow            = &e
    #Dark red        = &4        White            = &f
    #Dark purple    = &5        Magic            = &k
    #Gold            = &6        Bold            = &l
    #Gray            = &8        Strikethrough  = &m
    #Blue            = &9        Underline      = &n
    #Green            = &a        Italic          = &o
    #Aqua            = &b        Reset          = &r
     
    #Found an bug? Post it on the bukkit dev site!
    #End of HideHub configuration!
     
  2. Offline

    xTrollxDudex

    bramhaag
    The second one, on the previous entry, you have to end the string.
     
  3. Thanks dude! I totally missed that one!
     
Thread Status:
Not open for further replies.

Share This Page