From 7d41f7c5cecdda47ebc63406686461f292df9a93 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 5 Oct 2014 17:35:10 +0200 Subject: [PATCH] Addind an error message when a player use teleport without right. --- builtin/game/chatcommands.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua index 9293e98f4..0ccac854b 100644 --- a/builtin/game/chatcommands.lua +++ b/builtin/game/chatcommands.lua @@ -364,8 +364,11 @@ core.register_chatcommand("teleport", { .. " to " .. target_name .. " at " .. core.pos_to_string(p) end - end - + else + minetest.chat_send_player(name, "You cannot teleport any other player (missing privilege : bring).", true) + return false + end + return false, 'Invalid parameters ("' .. param .. '") or player not found (see /help teleport)' end,