feat: expose command sender to code from in-game

This commit is contained in:
2025-02-21 23:34:25 -05:00
parent aadc9a919e
commit 3fc917efae
4 changed files with 35 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ function look_at_player(name)
player.position.y = player.position.y + 1
client:look_at(player.position)
else
client:chat("player not found!")
client:chat(string.format("/w %s player not found!", sender))
end
end
@@ -13,6 +13,6 @@ function goto_player(name)
if player then
client:goto(player.position)
else
client:chat("player not found!")
client:chat(string.format("/w %s player not found!", sender))
end
end