Add /tp Command To Co-Exist With /bring And /go-to (#65)

* Add !evolution to auto-chat.lua

* Add !evolution to chat-bot.cfg

* Fixed syntax error and converted to two decimal places

* Add the /tp command to co-exist with /bring and /go-to

* Add /tp command to co-exist with /bring and /go-to into admin.lua

* Fix /tp

* Fix admin.lua

* Fixed Admin.tp call
This commit is contained in:
JCA122204
2018-06-01 15:10:28 -04:00
committed by Cooldude2606
parent 50a5d0baa8
commit b9b43504a5
2 changed files with 23 additions and 1 deletions

View File

@@ -19,3 +19,13 @@ commands.add_command('bring', 'Bring a player to your location', {'player'}, fun
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
Admin.bring(player,event)
end)
commands.add_command('tp', 'Teleport a player to another player\'s location', {'from', 'to'}, function(event,args)
local from_player = Game.get_player(args.from)
if not from_player then player_return({'commands.invalid-player',args.from_player}) return commands.error end
local to_player = Game.get_player(args.to)
if not to_player then player_return({'commands.invalid-player',args.to_player}) return commands.error end
Admin.tp(from_player, to_player)
end)