refactor(lib): pass options from goto_player
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user