Skip to content
Permalink
Browse files

Add a better error message when trying to teleport another player wit…

…hout bring privileges
  • Loading branch information
LeMagnesium authored and ShadowNinja committed Oct 5, 2014
1 parent 741df99 commit cba038e6dd5e2c5fd6be8790d7d9dd89f5b7bfe1
Showing with 4 additions and 2 deletions.
  1. +4 −2 builtin/game/chatcommands.lua
@@ -364,8 +364,10 @@ core.register_chatcommand("teleport", {
.. " to " .. target_name
.. " at " .. core.pos_to_string(p)
end
end

else
return false, "You don't have permission to run this command (missing privileges: bring)"
end

return false, 'Invalid parameters ("' .. param
.. '") or player not found (see /help teleport)'
end,

0 comments on commit cba038e

Please sign in to comment.
You can’t perform that action at this time.