Adding an error message when a player use teleport whithout right

This commit is contained in:
LeMagnesium 2014-10-05 17:47:50 +02:00
parent 7d41f7c5ce
commit 0be74c4a6d
1 changed files with 1 additions and 2 deletions

View File

@ -365,8 +365,7 @@ core.register_chatcommand("teleport", {
.. " at " .. core.pos_to_string(p)
end
else
minetest.chat_send_player(name, "You cannot teleport any other player (missing privilege : bring).", true)
return false
return false, "You don't have permission to run this command (missing privileges: bring)"
end
return false, 'Invalid parameters ("' .. param