Allow admins to travel without waiting when using the /warp cmd.

This commit is contained in:
Auke Kok 2016-01-03 23:18:23 -08:00
parent 1053e592df
commit ded6fd1195
1 changed files with 5 additions and 1 deletions

View File

@ -192,7 +192,11 @@ minetest.register_chatcommand("warp", {
privs = { warp_user = true },
func = function(name, param)
local player = minetest.get_player_by_name(name)
warp_queue_add(player, param)
if not minetest.check_player_privs(player, {warp_admin = true}) then
warp_queue_add(player, param)
else
warp(player, param)
end
end
})