feat: add auto respawn support

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-02-23 22:35:05 +08:00
parent e8d41e8a43
commit f660b4a4f8
4 changed files with 76 additions and 36 deletions

View File

@@ -87,7 +87,11 @@ function $(input: any) {
if (typeof input === "string") {
input = JSON.parse(input)
}
return mcColor2ANSI(json2text(input) + '§r')
input = json2text(input) + '§r'
if (input.startsWith('§卐')) {
input = input.substring(2)
}
return mcColor2ANSI(input)
}
export {