ServerlistMOTD X

ServerlistMOTD X

90.1k Downloads

config.yml keeps getting renamed to config_old.yml, cant get it to work

scratchem opened this issue ยท 3 comments

commented

Hi,
I will provide the config_old file. I am unfamiliar with this formatting, and its really annoying for me to sort out. Any help?

config_old.txt

commented

Hey! You just had a few minor mistakes.

First two here:
'&2TRAPAN EARTH&2 %line%&3this server's owner is 4'11'
Every time you use a ' in your motd, you need to escape it. You can easily do it by writing two ' instead of one '. Of course it will be correctly displayed in the server list. More info in the wiki under apostrophe usage: click
-> Correct version: '&2TRAPAN EARTH&2 %line%&3this server''s owner is 4''11'

Last one:
'&2TRAPAN EARTH&2 %line%&3'&e%player%&e! is stoopid'
There is a ' before &e. It needs to be removed.
-> Correct version: '&2TRAPAN EARTH&2 %line%&e%player%&3! is stoopid'

YAML can be a bitch :)
Complete working config: https://pastebin.com/7R4n1rf9

Let me know, if it works.

Info for me: There is a bug that regenerates the config if it contains any mistakes. The plugin should stop working in those cases.

commented

I'm glad it worked for you! Officially, this project is discontinued, but I still feel committed and give support here and there, do bug fixes and maybe add small features. People should not have any expectations though. But I've been saying this for three years now and I'm still here. So...

commented

Hey! You just had a few minor mistakes.

First two here:
'&2TRAPAN EARTH&2 %line%&3this server's owner is 4'11'
Every time you use a ' in your motd, you need to escape it. You can easily do it by writing two ' instead of one '. Of course it will be correctly displayed in the server list. More info in the wiki under apostrophe usage: click
-> Correct version: '&2TRAPAN EARTH&2 %line%&3this server''s owner is 4''11'

Last one:
'&2TRAPAN EARTH&2 %line%&3'&e%player%&e! is stoopid'
There is a ' before &e. It needs to be removed.
-> Correct version: '&2TRAPAN EARTH&2 %line%&e%player%&3! is stoopid'

YAML can be a bitch :)
Complete working config: https://pastebin.com/7R4n1rf9

Let me know, if it works.

Info for me: There is a bug that regenerates the config if it contains any mistakes. The plugin should stop working in those cases.

Thank you so much! I had a feeling, from reading earlier posts of yours that it was the apostrophes - glossed over it hehe. Thank you for the help, it works! Glad to see there is an active developer behind this.