Ok so i tried it one more time. I assure you everything was correct this time and still the error witha rewrite.
2012-03-16 02:39:09 [INFO] [ZavAutoMessager] Enabling ZavAutoMessager v1.8.3
2012-03-16 02:39:09 [SEVERE] Cannot load plugins\ZavAutoMessager\config.yml
org.bukkit.configuration.InvalidConfigurationException: while scanning a quoted scalar
in "<string>", line 18, column 3:
- '&6If your enjoying your time on ...
^
found unexpected end of stream
in "<string>", line 19, column 1:
^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:177)
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
at com.zavteam.plugins.configs.MainConfig.loadConfig(MainConfig.java:17)
at com.zavteam.plugins.Main.autoReload(Main.java:58)
at com.zavteam.plugins.Main.onEnable(Main.java:42)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Caused by: while scanning a quoted scalar
in "<string>", line 18, column 3:
- '&6If your enjoying your time on ...
^
found unexpected end of stream
in "<string>", line 19, column 1:
^
at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalarSpaces(ScannerImpl.java:1532)
at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.java:1464)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.java:834)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(ScannerImpl.java:819)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:337)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:537)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
... 17 more
Ok, well im pretty sure, i wish i would have saved it, that when i had setup the config it worked fine with a previous version. It wasnt until i installed the newest jar from this plugin that it started the parsing error. So like i said i had a backup, so after it erased itself i thought maybe new jar, new config, so i recopied the messages from the prior backup, there were no changes i checked to make sure, it erased and reformatted. Also no offense i find that hard to stomach that IF i make a mistake All my messgaes will be erased. Not everyone makes a backup.
The config overwrite is only a bug if your config is invalid or has a yaml error. As long as your config is correct it will not overwrite. I am waiting for a 1.2.3 full RB to be released before I update this again.
Just wondering if the config overwrite has been fixed and also it says up top your going to add a new function to chatwrap manually? I find that odd considering ive always been able to chatwarp manuallyin your plugin by doing something like this. - 'Hello. Welcome to my server! &nPlease read the rules!'
Notice the characters (&n) in any auto messager ive ever used this has been a feature. That starts the sentence on a new line.
I would like Messages per group also, I would think that because for example:
1. Lets say a VIP just got promoted and they haven't seen blacklist, then only that 'group' would see it (Like to the server website, or something).
2. Admin messages, that you can configure, for meetings, and other things (Reminders)
There are other reasons but I haven't put them up xD....
Its possible, but this is very low priority for me, because I have other parts of this plugin that still need work. Once everything is ironed out I might add that. Why do you need different messages per group though?
hmm yes I just tested it. It appears as if you use illegal characters or improper formatting the config resets. I will try and fix this problem soon. Remember that ALL your messages should be in single quotes. This prevents those weird parsing issues and it should save properly :)
Yes i would edit the config with a new message and it when i would save and reload the server it would spit some shit about parsing in the wrong line, what not. Ive seen that before and can usually fix it but when i would go back in, the config would be overwritten back to like i never used it.
Are you using /automessger reload or /reload? Please tell me exactly how to replicate the problem so that I can fix it. I didn't change the config interface in 1.8.3, all I did was update it to the latest RB. It should not be broken. I would appreciate it if you could send me a ticket regarding these issues. Thanks :)
Ok so luckily i keep a backup. I used the new 1.8.3 and whenever i reload my server it completely wipes out my messages and resets the config. Also using latest craftbukkit build.
@wolfenit415
Please send me your config.
Ok so i tried it one more time. I assure you everything was correct this time and still the error witha rewrite.
2012-03-16 02:39:09 [INFO] [ZavAutoMessager] Enabling ZavAutoMessager v1.8.3 2012-03-16 02:39:09 [SEVERE] Cannot load plugins\ZavAutoMessager\config.yml org.bukkit.configuration.InvalidConfigurationException: while scanning a quoted scalar in "<string>", line 18, column 3: - '&6If your enjoying your time on ... ^ found unexpected end of stream in "<string>", line 19, column 1:
^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:177) at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117) at com.zavteam.plugins.configs.MainConfig.loadConfig(MainConfig.java:17) at com.zavteam.plugins.Main.autoReload(Main.java:58) at com.zavteam.plugins.Main.onEnable(Main.java:42) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: while scanning a quoted scalar in "<string>", line 18, column 3: - '&6If your enjoying your time on ... ^ found unexpected end of stream in "<string>", line 19, column 1:
^
at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalarSpaces(ScannerImpl.java:1532) at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.java:1464) at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.java:834) at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(ScannerImpl.java:819) at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:337) at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179) at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:537) at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ... 17 more
Ok, well im pretty sure, i wish i would have saved it, that when i had setup the config it worked fine with a previous version. It wasnt until i installed the newest jar from this plugin that it started the parsing error. So like i said i had a backup, so after it erased itself i thought maybe new jar, new config, so i recopied the messages from the prior backup, there were no changes i checked to make sure, it erased and reformatted. Also no offense i find that hard to stomach that IF i make a mistake All my messgaes will be erased. Not everyone makes a backup.
@wolfenit415
The config overwrite is only a bug if your config is invalid or has a yaml error. As long as your config is correct it will not overwrite. I am waiting for a 1.2.3 full RB to be released before I update this again.
@Puremin0rez
That is not a bug... I do that intentionally so you can see that it is colored.
Just wondering if the config overwrite has been fixed and also it says up top your going to add a new function to chatwrap manually? I find that odd considering ive always been able to chatwarp manuallyin your plugin by doing something like this. - 'Hello. Welcome to my server! &nPlease read the rules!'
Notice the characters (&n) in any auto messager ive ever used this has been a feature. That starts the sentence on a new line.
I'm getting weird symbols from the color codes when it shows the broadcast in console, may you fix this? Thank you.
@Bear809
http://www.minecraftwiki.net/index.php?title=Color_codes
How do you add colours? Maybe add that to documentation?
@zachoooo
Thanks!
@okalawolf
I guess ill have to get working on that as soon as I fix up some bugs.
@zachoooo
I would like Messages per group also, I would think that because for example: 1. Lets say a VIP just got promoted and they haven't seen blacklist, then only that 'group' would see it (Like to the server website, or something). 2. Admin messages, that you can configure, for meetings, and other things (Reminders)
There are other reasons but I haven't put them up xD....
Thanks, okalawolf
@Flatronotto
Its possible, but this is very low priority for me, because I have other parts of this plugin that still need work. Once everything is ironed out I might add that. Why do you need different messages per group though?
I have a question!
I would like to set different message's per group! is that possible or not? if not please add it if you can because it would be helpful.
Thanks
@wolfenit415
hmm yes I just tested it. It appears as if you use illegal characters or improper formatting the config resets. I will try and fix this problem soon. Remember that ALL your messages should be in single quotes. This prevents those weird parsing issues and it should save properly :)
Yes i would edit the config with a new message and it when i would save and reload the server it would spit some shit about parsing in the wrong line, what not. Ive seen that before and can usually fix it but when i would go back in, the config would be overwritten back to like i never used it.
@wolfenit415
Are you using /automessger reload or /reload? Please tell me exactly how to replicate the problem so that I can fix it. I didn't change the config interface in 1.8.3, all I did was update it to the latest RB. It should not be broken. I would appreciate it if you could send me a ticket regarding these issues. Thanks :)
Ok so luckily i keep a backup. I used the new 1.8.3 and whenever i reload my server it completely wipes out my messages and resets the config. Also using latest craftbukkit build.
@Switch0r
Do you have word wrapping on?
Thanks for this plugin.
Some bug.
If i set a msg like this in the config:
- 'Welcome player to this server'
Then the outcome is like this
Welcome player to thisserver
I sticks words together.