Merge pull request #258 from PHIDIAS0303/patch-1

1 decimal place on last location gps
This commit is contained in:
Cooldude2606
2023-12-21 20:19:55 +00:00
committed by GitHub

View File

@@ -15,5 +15,5 @@ Commands.new_command('last-location', 'Sends you the last location of a player')
:add_param('player', false, 'player')
:register(function(player, action_player)
local action_player_name_color = format_chat_player_name(action_player)
player.print{'expcom-lastlocation.response', action_player_name_color, action_player.position.x, action_player.position.y}
end)
player.print{'expcom-lastlocation.response', action_player_name_color, string.format('%.1f', action_player.position.x), string.format('%.1f', action_player.position.y)}
end)