feat: expose command sender to code from in-game
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user