fix errors msg not beeing colored

This commit is contained in:
AFCMS 2021-04-06 13:11:32 +02:00
parent c307b5304f
commit 9b0f2c4cbf
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
local S = minetest.get_translator("mcl_commands")
local C = minetest.colorize
local mod_death_messages = minetest.get_modpath("mcl_death_messages")
@ -319,11 +320,11 @@ function mcl_commands.build(name, chat_def)
missing_privs_str = missing_privs_str..missing_privs[i]
end
end
return false, "You don't have permission to run this command (missing privilege: "..missing_privs_str..")"
return false, C(mcl_colors.RED, S("You don't have permission to run this command (missing privilege: "..missing_privs_str..")"))
end
end
end
return false, msg
return false, C(mcl_colors.RED, msg)
end
if chat_def.params then
cmd.params = chat_def.params