Added command find

This commit is contained in:
Cooldude2606
2019-05-27 14:38:23 +01:00
parent ac755ba2ac
commit e1ec16ac77
5 changed files with 32 additions and 2 deletions

11
modules/commands/find.lua Normal file
View 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)