Can i use UTF-8 codes somehow?
ShDis opened this issue · 5 comments
Hey there, this is a known behaviour. I might add support for this kind of unicode notation in the future. But in the meantime: Have you tried using the cyrillic letters directly instead of using the unicode representation in the config.yml? For me at least, I can use cyrillic letters directly in the config. Let me know! :)
For example:
Regulars:
- '&bсобака'
I might have found a very easy quick fix you could try: Instead of wrapping the motd texts in a single quote ' try wrapping them in a double quote " everywhere you use the unicode representation of the cyrillic letters. This allows the correct escaping with \u.
So instead of:
RandomMotd:
Enable: true
Regulars:
- '&b%player% &d\u043e\u043f\u044f\u0442\u044c \u0437\u0430\u0431\u043b\u0443\u0434\u0438\u043b\u0441\u044f \u0432 %line%\u043a\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&r'
Do this:
RandomMotd:
Enable: true
Regulars:
- "&b%player% &d\u043e\u043f\u044f\u0442\u044c \u0437\u0430\u0431\u043b\u0443\u0434\u0438\u043b\u0441\u044f \u0432 %line%\u043a\u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&r"
Let me know if this helped.