mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Added command find
This commit is contained in:
11
modules/commands/find.lua
Normal file
11
modules/commands/find.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user