refactor(lib): pass options from goto_player

This commit is contained in:
Ryan 2025-02-22 14:21:26 -05:00
parent 3236c4c32e
commit 550aee5578
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -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