{"action":"created","issue":{"url":"https://api.github.com/repos/mcMMO-Dev/mcMMO/issues/2797","repository_url":"https://api.github.com/repos/mcMMO-Dev/mcMMO","labels_url":"https://api.github.com/repos/mcMMO-Dev/mcMMO/issues/2797/labels{/name}","comments_url":"https://api.github.com/repos/mcMMO-Dev/mcMMO/issues/2797/comments","events_url":"https://api.github.com/repos/mcMMO-Dev/mcMMO/issues/2797/events","html_url":"https://github.com/mcMMO-Dev/mcMMO/issues/2797","id":140064827,"number":2797,"title":"DEV b97 config rebuild/rewrite error","user":{"login":"leasoncre","id":13475541,"avatar_url":"https://avatars.githubusercontent.com/u/13475541?v=3","gravatar_id":"","url":"https://api.github.com/users/leasoncre","html_url":"https://github.com/leasoncre","followers_url":"https://api.github.com/users/leasoncre/followers","following_url":"https://api.github.com/users/leasoncre/following{/other_user}","gists_url":"https://api.github.com/users/leasoncre/gists{/gist_id}","starred_url":"https://api.github.com/users/leasoncre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leasoncre/subscriptions","organizations_url":"https://api.github.com/users/leasoncre/orgs","repos_url":"https://api.github.com/users/leasoncre/repos","events_url":"https://api.github.com/users/leasoncre/events{/privacy}","received_events_url":"https://api.github.com/users/leasoncre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T02:07:42Z","updated_at":"2016-03-12T03:24:11Z","closed_at":"2016-03-12T03:24:11Z","body":"i assume this is related to the plugin re-writeing the config on updating:\r\n\r\nchanging/upgrading dev server (test server) from 1.5.04-SNAPSHOT-b82 /on/ 1.8.8 git-Spigot-e4d4710-e1ebe52\r\n//-to-// 1.5.04-SNAPSHOT-b97 /on/ 1.9 git-Spigot-b1c1b55-7d330bc\r\n\r\n`[20:50:52] [Server thread/INFO]: [mcMMO] Enabling mcMMO v1.5.04-SNAPSHOT-b97\r\n[20:50:52] [Server thread/ERROR]: Cannot load plugins\\mcMMO\\config.yml\r\norg.bukkit.configuration.InvalidConfigurationException: while scanning a simple key\r\n in 'string', line 156, column 9:\r\n            Anvil_Placed_#\r\n            ^\r\ncould not find expected ':'\r\n in 'string', line 157, column 1:\r\n    #  Settings for sounds\r\n    ^\r\n\r\n\tat org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:184) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:179) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:187) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:162) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat com.gmail.nossr50.util.LogFilter.<init>(LogFilter.java:13) [mcMMO%20b97.jar:?]\r\n\tat com.gmail.nossr50.mcMMO.onEnable(mcMMO.java:133) [mcMMO%20b97.jar:?]\r\n\tat org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:361) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:321) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:202) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat java.lang.Thread.run(Unknown Source) [?:1.8.0_74]\r\nCaused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key\r\n in 'string', line 156, column 9:\r\n            Anvil_Placed_#\r\n            ^\r\ncould not find expected ':'\r\n in 'string', line 157, column 1:\r\n    #  Settings for sounds\r\n    ^\r\n\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:465) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:280) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:225) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:224) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.yaml.snakeyaml.Yaml.load(Yaml.java:369) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\tat org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[spigot-1.9.jar:git-Spigot-b1c1b55-7d330bc]\r\n\t... 15 more`\r\n\r\nit tries to fix it 3 times on server start/load, looks like the file re-write process has a bug. deleting the config.yml and generating a new one doesn't have this issue.\r\n"},"comment":{"url":"https://api.github.com/repos/mcMMO-Dev/mcMMO/issues/comments/195650280","html_url":"https://github.com/mcMMO-Dev/mcMMO/issues/2797#issuecomment-195650280","issue_url":"https://api.github.com/repos/mcMMO-Dev/mcMMO/issues/2797","id":195650280,"user":{"login":"t00thpick1","id":1329257,"avatar_url":"https://avatars.githubusercontent.com/u/1329257?v=3","gravatar_id":"","url":"https://api.github.com/users/t00thpick1","html_url":"https://github.com/t00thpick1","followers_url":"https://api.github.com/users/t00thpick1/followers","following_url":"https://api.github.com/users/t00thpick1/following{/other_user}","gists_url":"https://api.github.com/users/t00thpick1/gists{/gist_id}","starred_url":"https://api.github.com/users/t00thpick1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t00thpick1/subscriptions","organizations_url":"https://api.github.com/users/t00thpick1/orgs","repos_url":"https://api.github.com/users/t00thpick1/repos","events_url":"https://api.github.com/users/t00thpick1/events{/privacy}","received_events_url":"https://api.github.com/users/t00thpick1/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T03:24:11Z","updated_at":"2016-03-12T03:24:11Z","body":"Fixed"}}