Solved Config bug help solve. :\

Discussion in 'Spigot Plugin Development' started by Z3tr0nix, Jun 5, 2017.

Thread Status:
Not open for further replies.
  1. here is the log:
    Code (Text):
    5.06 15:30:59 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: while scanning an anchor
    05.06 15:30:59 [Server] INFO in 'string', line 10, column 10:
    05.06 15:30:59 [Server] INFO - &6&lRa
    05.06 15:30:59 [Server] INFO ^
    05.06 15:30:59 [Server] INFO expected alphabetic or numeric character, but found &(38)
    05.06 15:30:59 [Server] INFO in 'string', line 10, column 12:
    05.06 15:30:59 [Server] INFO - &6&lRa
    05.06 15:30:59 [Server] INFO ^
    05.06 15:30:59 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:184) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:179) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:167) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:142) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at z3tr0nix.kits.main.Kit.registerConfig(Kit.java:287) [Kits.jar:?]
    05.06 15:30:59 [Server] INFO at z3tr0nix.kits.main.Kit.onEnable(Kit.java:51) [Kits.jar:?]
    05.06 15:30:59 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin(CraftServer.java:376) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer.java:326) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.t(MinecraftServer.java:421) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.l(MinecraftServer.java:382) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.a(MinecraftServer.java:337) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    05.06 15:30:59 [Server] INFO Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning an anchor
    05.06 15:30:59 [Server] INFO in 'string', line 10, column 10:
    05.06 15:30:59 [Server] INFO - &6&lRa
    05.06 15:30:59 [Server] INFO ^
    05.06 15:30:59 [Server] INFO expected alphabetic or numeric character, but found &(38)
    05.06 15:30:59 [Server] INFO in 'string', line 10, column 12:
    05.06 15:30:59 [Server] INFO - &6&lRa
    05.06 15:30:59 [Server] INFO ^
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1446) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAnchor(ScannerImpl.java:939) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:370) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:503) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceFirstEntry.produce(ParserImpl.java:495) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:198) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:153) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.yaml.snakeyaml.Yaml.load(Yaml.java:369) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[spigot-1.11.jar:git-Spigot-3fb9445-6e3cec8]
    05.06 15:30:59 [Server] INFO ... 18 more
    and here is the config:
    Code (Text):
    Kits:
         - &6&lRa
         - &2&lZombie
         - &8&lEnderman
    its basically not reading that as a stringlist but it is reading it as a configurationsection, I can not find a fix...
    and yes I tried adding qoutes, that did not help...
     
  2. Try this
    https://www.spigotmc.org/threads/config-loading-error.94447/
     
  3. This is an apostrophe: '
    This is a quotation mark: "

    *slow claps*
     
  4. after restarting a bit it automatically fixed :\
     
  5. i tried that. and quotation marks dont work in YAMLs and click that link in the second post lol.http://i.imgur.com/o7MGWQf.gif
     
Thread Status:
Not open for further replies.