config.yml erstellt sich immer neu | Bukkit plugin schreiben

...komplette Frage anzeigen

3 Antworten

Habe den Fehler..... An alle die den Fehler auch haben:

onEnable { loadConfig(); }

}
private void loadConfig()
{
    FileConfiguration cfg = this.getConfig();
    cfg.options().copyDefaults(true);
    saveConfig();
}

In Config:

Messages: CChat: 'Mein Kanal: www.youtube.de/xdjdmxx'

Oh, ja das habe ich auch. Habe bis heute noch keine Lösung gefunden, sorry.

Die Source vom Plugin oder der Server log?

[16:50:37 ERROR]: Cannot load configuration from stream org.bukkit.configuration.InvalidConfigurationException: mapping values are not a llowed here in "", line 2, column 8: CChat: 'Test' ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo

nfiguration.java:55) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio n.java:149) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Yam lConfiguration.java:204) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:154) [ craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:144) [cra ftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at me.Dmx512dmx.twintowerLP.twintowerLP.loadConfig(twintowerLP.java:61) [twintowerLP.jar:?] at me.Dmx512dmx.twintowerLP.twintowerLP.onEnable(twintowerLP.java:38) [t wintowerLP.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [cr aftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:350) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:389) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.jav a:439) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer. java:375) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:77 3) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit1.7.2.jar:git-B ukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java: 23) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:17 5) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe r.java:683) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(Craf tServer.java:670) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java: 286) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 51) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 45) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :457) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] Caused by: org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are not allowed here at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:73 3) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja va:305) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.scanner.ScannerImpl.peekToken(ScannerImpl.java:202 ) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentEnd.produce(ParserI mpl.java:265) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~ [craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:171) ~[ craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12 5) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons tructor.java:121) ~[craftbukkit1.7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit1. 7.2.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) ~[craftbukkit1.7.2.jar:gi t-Bukkit-1.7.2-R0.3

0

Was möchtest Du wissen?