Closed Gakuto1112 closed 1 year ago
Play stupid games win stupid prizes I guess. This can very easily be avoided in base Lua with a simple
str = str:gsub("§[0-9a-fklmnor]?", "")
Also, I would advise against the suggestion as some servers do allow the use of the section sign in chat messages sent by players.
Not fixing this, as the server can allow the user to input "§" or have changed the blacklisted character to another one
Description
Players who uses Figura avatar will be disconnected immediately because of "Illigal characters in chat" when avatar script runs
host:sendChatCommand()
orhost:sendChatCommand()
with formatting codes included.How to reproduce
/figura run <code>
.You will be kicked by Minecraft server.
Expected behavior
Figura should remove formatting code when running
host:sendChatCommand()
orhost:sendChatCommand()
to prevent players from disconnecting.Notes