diff --git a/mods/track_players/init.lua b/mods/track_players/init.lua index a4b8fac..4bf7f14 100644 --- a/mods/track_players/init.lua +++ b/mods/track_players/init.lua @@ -9,7 +9,7 @@ function players_data() end for i = 1,pcount do local player = ps[i] - local data = player:getpos() + local data = player:get_pos() data.name = player:get_player_name() ps[i] = data end diff --git a/mods/track_players/mod.conf b/mods/track_players/mod.conf new file mode 100644 index 0000000..265f242 --- /dev/null +++ b/mods/track_players/mod.conf @@ -0,0 +1,2 @@ +name = track_players +description = Forwards player positions to mtwebmapper.