Skip to content

Commit

Permalink
Add a better error message when trying to teleport another player wit…
Browse files Browse the repository at this point in the history
…hout bring privileges
  • Loading branch information
Lymkwi authored and ShadowNinja committed Oct 7, 2014
1 parent 741df99 commit cba038e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builtin/game/chatcommands.lua
Expand Up @@ -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,
Expand Down

0 comments on commit cba038e

Please sign in to comment.