forked from minetest-mods/warps
Allow admins to travel without waiting when using the /warp cmd.
This commit is contained in:
parent
1053e592df
commit
ded6fd1195
6
init.lua
6
init.lua
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user