mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 03:55:23 +09:00
11 lines
471 B
Lua
11 lines
471 B
Lua
local Commands = require 'expcore.commands'
|
|
require 'config.expcore-commands.parse_general'
|
|
|
|
Commands.new_command('find-on-map','Find a player on your map.')
|
|
:add_param('player',false,'player-online') -- the player to find on the map
|
|
:add_alias('find','zoom-to')
|
|
:register(function(player,action_player,raw)
|
|
local position = action_player.position
|
|
player.zoom_to_world(position,2)
|
|
return Commands.success -- prevents command complete message from showing
|
|
end) |