mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 13:01:39 +09:00
Made requested changes
This commit is contained in:
@@ -82,4 +82,4 @@ offline=You cannot connect as the server is currently offline: __1__
|
|||||||
none-matching=No servers were found with that name, if you used an address please append true to the end of your command.
|
none-matching=No servers were found with that name, if you used an address please append true to the end of your command.
|
||||||
|
|
||||||
[expcom-lastlocation]
|
[expcom-lastlocation]
|
||||||
response=Last location of __1__ is [gps=__2__,__3__]
|
response=Last location of __1__ was [gps=__2__,__3__]
|
||||||
@@ -11,8 +11,8 @@ require 'config.expcore.command_general_parse'
|
|||||||
-- @command last-location
|
-- @command last-location
|
||||||
-- @tparam LuaPlayer player the player that you want a location of
|
-- @tparam LuaPlayer player the player that you want a location of
|
||||||
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_param('player', false, 'player-role')
|
:add_alias('location')
|
||||||
:set_flag('admin_only')
|
:add_param('player', false, 'player')
|
||||||
:register(function(player, action_player)
|
:register(function(player, 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, action_player.position.x, action_player.position.y}
|
player.print{'expcom-lastlocation.response', action_player_name_color, action_player.position.x, action_player.position.y}
|
||||||
|
|||||||
Reference in New Issue
Block a user