refactor(lib): pass options from goto_player
This commit is contained in:
@@ -8,10 +8,10 @@ function look_at_player(name)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function goto_player(name)
|
function goto_player(name, opts)
|
||||||
local player = get_player(name)
|
local player = get_player(name)
|
||||||
if player then
|
if player then
|
||||||
client:goto(player.position)
|
client:goto(player.position, opts)
|
||||||
else
|
else
|
||||||
client:chat(string.format("/w %s player not found!", sender))
|
client:chat(string.format("/w %s player not found!", sender))
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user