![MiniMOTD](https://media.forgecdn.net/avatars/thumbnails/290/987/256/256/637320745415670545.png)
[Bug Report] MOTD formatting text is cleared on reload
seanchristians opened this issue ยท 4 comments
Describe the bug
Formatting tags are removed after running minimotd reload
To Reproduce
Steps to reproduce the behavior:
- Open
config/MiniMOTD/main.conf
icon-enabled: false
motd-enabled: true
- Create a single motd entry.
- Write minimessage-style formatted text for motd lines 1 and 2
- Save and close the config file.
- Run
/minimotd reload
on the server - Re-open the config file.
Expected behavior
I expect my formatting to persist across reloads.
Server Software and Version:
- Vendor: Fabric
- Minecraft Version: 1.16.5
Additional context
N/A
Are there any errors in the console? Could you share the main.conf
file (via something like https://paste.gg/) that doesn't save properly?
Wow, thanks for the quick reply!
The console doesn't seem to throw any errors:
[MiniMOTD] Reloading MiniMOTD...[MiniMOTD] Done reloading MiniMOTD
Here's my main.conf before:
https://paste.gg/p/anonymous/28ea85b60c0942cc9aff6f21ceeb4455
and after:
https://paste.gg/p/anonymous/8a8beba5d57741afbcf35a6673d02c28
Hmm, to be honest I have no idea what could cause the config to become modified like that... I tested adding the motd you provided to my config, and also tried with it as the only motd in the config
{
icon="random"
line1="<white><b>Foo</white> \u23d0 </b><red><underlined>Bar</underlined></red>"
line2="<light_purple>Baz</light_purple>"
}
and for me, it loaded and saved properly, resulting in this motd
For me to fix this I need to be able to reproduce it or understand what's causing it, but I don't remove formatting from text in this way anywhere in the mod, so I'm pretty confused.
Could you provide a list of other mods you are using, as well as information about your java install and OS? Theres a chance replicating your setup could help me reproduce this issue.