Allow /me while cloaked

Adds the allow_while_cloaked parameter to /me.
This commit is contained in:
luk3yx 2018-04-02 08:47:36 +12:00
parent b5012c39b2
commit 38552b207a
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ minetest.register_on_leaveplayer(cloaking.auto_uncloak)
if minetest.chatcommands['me'] then
local f = minetest.chatcommands['me'].func
minetest.override_chatcommand('me', {
allow_while_cloaked = true,
func = function(name, params)
cloaking.auto_uncloak(name)
return f(name, params)