Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cba038e

Browse files
LymkwiShadowNinja
authored andcommittedOct 7, 2014
Add a better error message when trying to teleport another player without bring privileges
1 parent 741df99 commit cba038e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎builtin/game/chatcommands.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,10 @@ core.register_chatcommand("teleport", {
364364
.. " to " .. target_name
365365
.. " at " .. core.pos_to_string(p)
366366
end
367-
end
368-
367+
else
368+
return false, "You don't have permission to run this command (missing privileges: bring)"
369+
end
370+
369371
return false, 'Invalid parameters ("' .. param
370372
.. '") or player not found (see /help teleport)'
371373
end,

0 commit comments

Comments
 (0)
Please sign in to comment.