I thought it was a config error on my part at first but it seems using color codes in the restart message stopped working in the spigot.yml server restart message. Sometimes it defaults to the bukkit.yml restart message othertimes it displays "A connection was forcibly closed" error instead of the restart message to players upon a "/stop" command.
Attempted setting color coded message in the bukkit.yml and that cause the server to fail to even boot up. So both bukkit.yml and spigot.yml require non-colored messages to display properly which is unfortunate cause I've been using color coded message for a long long time.
Minor update: So as of the most recent 1.14.2 the server fails to start if spigot.yml restart message contains a color code and if bukkit.yml contains color code server throws an error and changes it back to default message.
In any case where the server does start, the bukkit.yml restart message is being used and never the spigot.yml restart message.
For clarity, the syntax of the restart message string:
bukkit.yml
shutdown-message: §6Bukkit Server is restarting. §3We will be back in a minute!
spigot.yml
restart: §6Spigot Server is restarting. §3We will be back in a minute!
The error message players get sometimes at restart when color codes were used and the server was able to start:
Internal Exception: java.IOException: An existing connection was forcibly closed by the remote host
Error msg when color code used in bukkit.yml:
[11:08:33] [Server thread/ERROR]: Cannot load bukkit.yml org.bukkit.configuration.InvalidConfigurationException: unacceptable code point '' (0x15) special characters are not allowed in "'string'", position 811 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:183) [custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.craftbukkit.v1_14_R1.CraftServer.<init>(CraftServer.java:265) [custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.PlayerList.<init>(PlayerList.java:76) [custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.DedicatedPlayerList.<init>(SourceFile:14) [custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:151) [custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:761) [custom.jar:git-Spigot-01d0f04-455023c] at java.lang.Thread.run(Unknown Source) [?:1.8.0_211] Caused by: org.yaml.snakeyaml.reader.ReaderException: special characters are not allowed at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:211) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:126) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1177) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:195) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:107) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[custom.jar:git-Spigot-01d0f04-455023c] ... 9 more
Error message when spigot.yml contains color code:
[11:12:22] [Server thread/ERROR]: Could not load spigot.yml, please correct your syntax errors org.bukkit.configuration.InvalidConfigurationException: unacceptable code point '' (0x15) special characters are not allowed in "'string'", position 326 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.spigotmc.SpigotConfig.init(SpigotConfig.java:59) [custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:152) [custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:761) [custom.jar:git-Spigot-01d0f04-455023c] at java.lang.Thread.run(Unknown Source) [?:1.8.0_211] Caused by: org.yaml.snakeyaml.reader.ReaderException: special characters are not allowed at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:211) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:136) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1185) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:586) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:124) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[custom.jar:git-Spigot-01d0f04-455023c] ... 6 more [11:12:22] [Server thread/ERROR]: Encountered an unexpected exception java.lang.RuntimeException: org.bukkit.configuration.InvalidConfigurationException: unacceptable code point '' (0x15) special characters are not allowed in "'string'", position 326 at com.google.common.base.Throwables.propagate(Throwables.java:240) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.spigotmc.SpigotConfig.init(SpigotConfig.java:65) ~[custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:152) ~[custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:761) [custom.jar:git-Spigot-01d0f04-455023c] at java.lang.Thread.run(Unknown Source) [?:1.8.0_211] Caused by: org.bukkit.configuration.InvalidConfigurationException: unacceptable code point '' (0x15) special characters are not allowed in "'string'", position 326 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.spigotmc.SpigotConfig.init(SpigotConfig.java:59) ~[custom.jar:git-Spigot-01d0f04-455023c] ... 3 more Caused by: org.yaml.snakeyaml.reader.ReaderException: special characters are not allowed at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:211) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:136) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1185) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:586) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:124) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.spigotmc.SpigotConfig.init(SpigotConfig.java:59) ~[custom.jar:git-Spigot-01d0f04-455023c] ... 3 more [11:12:22] [Server thread/ERROR]: Cause of unexpected exception was org.bukkit.configuration.InvalidConfigurationException: unacceptable code point '' (0x15) special characters are not allowed in "'string'", position 326 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.spigotmc.SpigotConfig.init(SpigotConfig.java:59) ~[custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:152) ~[custom.jar:git-Spigot-01d0f04-455023c] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:761) [custom.jar:git-Spigot-01d0f04-455023c] at java.lang.Thread.run(Unknown Source) [?:1.8.0_211] Caused by: org.yaml.snakeyaml.reader.ReaderException: special characters are not allowed at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:211) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:136) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1185) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:586) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:124) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[custom.jar:git-Spigot-01d0f04-455023c] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[custom.jar:git-Spigot-01d0f04-455023c] ... 6 more [11:12:22] [Server thread/ERROR]: This crash report has been saved to: S:\Games\MC_test\.\crash-reports\crash-2019-05-30_11.12.22-server.txt [11:12:22] [Server thread/INFO]: Stopping server [11:12:22] [Server thread/INFO]: Saving players [11:12:22] [Server thread/INFO]: Saving worlds