控制台移除warn和error命令,修改mes命令说明,修改crash命令效果

This commit is contained in:
MrZ626
2021-06-27 19:01:10 +08:00
parent 5eaeaaa79f
commit 4d3d00bc58

View File

@@ -295,7 +295,7 @@ local commands={}do
--System --System
commands.crash={ commands.crash={
code=error, code=function()error("ERROR")end,
description="Manually crash the game", description="Manually crash the game",
} }
commands.mes={ commands.mes={
@@ -311,24 +311,16 @@ local commands={}do
else else
log{C.A,"Show a message on the up-left corner"} log{C.A,"Show a message on the up-left corner"}
log"" log""
log{C.A,"Usage: mes <check|info|broadcast|warn|error> [message]"} log{C.A,"Usage: mes <check|info|broadcast|warn|error>"}
end end
end, end,
description="Show a message", description="Show a message",
details={ details={
"Show a message on the up-left corner", "Show a message on the up-left corner",
"", "",
"Usage: mes <check|info|warn|error> [message]", "Usage: mes <check|info|warn|error>",
}, },
} }
commands.warn={
code=function(str)MES.new('warn',str,6)end,
description="Show a warn message",
}
commands.error={
code=function(str)MES.new('error',str,6)end,
description="Show an error message",
}
commands.openurl={ commands.openurl={
code=function(url) code=function(url)
if url~=""then if url~=""then