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