feat(lib): update examples
This commit is contained in:
@@ -3,16 +3,9 @@ function look_at_player(name)
|
||||
if player then
|
||||
player.position.y = player.position.y + 1
|
||||
client:look_at(player.position)
|
||||
else
|
||||
client:chat(string.format("/w %s player not found!", sender))
|
||||
end
|
||||
end
|
||||
|
||||
function go_to_player(name, opts)
|
||||
local player = get_player(name)
|
||||
if player then
|
||||
client:go_to(player.position, opts)
|
||||
else
|
||||
client:chat(string.format("/w %s player not found!", sender))
|
||||
end
|
||||
function go_to_player(name, go_to_opts)
|
||||
client:go_to(get_player(name).position, go_to_opts)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user