Container adding extra symbols to MOTD server.properties on server start
Server version: 1.16.1 Paper (git-Paper-117) Pterodactyl version: 1.0.0-beta.4 (upgraded to 1.0.0-beta.6, issue still prevalent) Wings version: 1.0.0-beta.5
Server offline, MOTD set as "motd=\u00A76BBQ - [Main]"
Server started, MOTD switches to "motd=§6BBQ - [Main]" briefly (this is fine, symbol is valid) and then "\u00C2\u00A76BBQ - [Main]" when fully started. It is possible the forced conversion of the MOTD is interpreting § as \u00C2 - which is causing the phantom A character to appear. This issue is not prevalent on the main build of pterodactyl, or when run locally on my desktop. No variables have been setup to modify the MOTD.
Produces the following results in the client:

My workarround is to remove all "Configuration Files" variables from the egg.
The huge drawback is, it wont apply those variables anymore upon startup, for example setting the correct port.
My workarround is to remove all "Configuration Files" variables from the egg.
The huge drawback is, it wont apply those variables anymore upon startup, for example setting the correct port.
Correct, removing all JSON reference of the server properties fixes it, with the obvious drawbacks.
You should also update your beta versions. You are quite far behind and a new version night fix that.
Hey Parker! Thanks for the suggestion. I just upgraded and sadly see the issue still using paper & vanilla minecraft eggs.
Indeed the issue still occurs on panel 1.0.0-beta.6 with wings v1.0.0 Beta Release 8.
Can you please attach a configuration file that gets messed up by the parser so I can test against it?
edit: Sorry just realized you included the line in the main report. 🤦
Indeed the issue still occurs on panel 1.0.0-beta.6 with wings v1.0.0 Beta Release 8.
Yep. happens here too. Its confirmed to be a known issue now I guess.
After further digging, this is not a bug in Pterodactyl. Even completely disabling the parser still results in the file being modified like that.
And digging into the parser even more, it was working correctly and saving the file as expected but then the server process would trigger a change to that MOTD.
Thanks @DaneEveritt , however I'm a bit puzzled here.
Any JSON configuration to the server properties file causes the MOTD issue from past experience. Removing all of said configuration fixes it. This has been reported by various people who are using the same workaround. Are we missing something?
Personally, I think the issue might be occuring due to the java version used in the containers and how it reads the § symbol in the properties file. It could be possible to re-create this issue outside of a container if the correct java version is installed.
I might be completely wrong, if I am, please correct me.
Off the back of that though, why is § potentially being used even when it is not specified in the properties, but rather the actual MOTD codes as highlighted in the top post?
This would avoid any potential errors that could be caused by utilising that symbol.
It could also be that the § symbol is the same as the motd code, but is being read incorrectly, it tries to fix it, and just makes it worse. There's a lot of things possible that might not even be related to wings itself, just the java version or incorrect code in the jar file itself.
I think this is getting slightly side tracked. The base issue is that the same MC server using the same java version works on a local machine using the same MOTD code which pterodactyl proceeds to display incorrectly in the server browser with the properties JSON configuration populated. If this is not a bug with pterodactyl, then what can users do to help fix this without outright removing the JSON?
The easiest way right now to avoid the issue for now is to use a MOTD plugin like ServerListPlus or something else.
Thanks @DaneEveritt , however I'm a bit puzzled here.
Any JSON configuration to the server properties file causes the MOTD issue from past experience. Removing all of said configuration fixes it. This has been reported by various people who are using the same workaround. Are we missing something?
I agree with Ipjn. Even if Pterodactyl is not the issue here, would you be able to point people in the direction you think could be causing the problem?
I don't play Minecraft, so I don't know.
All I can tell you is that I completely disabled configuration file edits and it still happened once the process was running, so it's out of my control.
closed by https://github.com/pterodactyl/wings/pull/56