mirror of https://github.com/minetest/minetest.git
Adding an error message when a player use teleport whithout right
This commit is contained in:
parent
7d41f7c5ce
commit
0be74c4a6d
|
@ -365,8 +365,7 @@ core.register_chatcommand("teleport", {
|
||||||
.. " at " .. core.pos_to_string(p)
|
.. " at " .. core.pos_to_string(p)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(name, "You cannot teleport any other player (missing privilege : bring).", true)
|
return false, "You don't have permission to run this command (missing privileges: bring)"
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return false, 'Invalid parameters ("' .. param
|
return false, 'Invalid parameters ("' .. param
|
||||||
|
|
Loading…
Reference in New Issue