mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Last Location print out (#265)
* Update last-location.lua * Update last-location.lua
This commit is contained in:
@@ -13,7 +13,7 @@ require 'config.expcore.command_general_parse'
|
|||||||
Commands.new_command('last-location', 'Sends you the last location of a player')
|
Commands.new_command('last-location', 'Sends you the last location of a player')
|
||||||
:add_alias('location')
|
:add_alias('location')
|
||||||
:add_param('player', false, 'player')
|
:add_param('player', false, 'player')
|
||||||
:register(function(player, action_player)
|
:register(function(_, action_player)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
player.print{'expcom-lastlocation.response', action_player_name_color, string.format('%.1f', action_player.position.x), string.format('%.1f', action_player.position.y)}
|
return Commands.success{'expcom-lastlocation.response', action_player_name_color, string.format('%.1f', action_player.position.x), string.format('%.1f', action_player.position.y)}
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user