refactor: convert to Player struct

This commit is contained in:
2025-02-21 21:36:24 -05:00
parent bd6698c4b4
commit 2f9e4f50cf
4 changed files with 44 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
function get_player(name)
local target_uuid = nil
for uuid, player in client.tab_list do
for _, player in client.tab_list do
if player.name == name then
target_uuid = uuid
target_uuid = player.uuid
break
end
end