From 41d55ef86b14abd9fbbdce7d6b2518b20b0cb33c Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Feb 2012 15:46:38 +0000 Subject: Lua seems to have trouble with a combination of overloaded functions and class inheritance, so I renamed TeleportTo( cEntity* ) to TeleportToEntity /tp command should work again :) git-svn-id: http://mc-server.googlecode.com/svn/trunk@314 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Plugins/Core/teleport.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugins/Core/teleport.lua') diff --git a/Plugins/Core/teleport.lua b/Plugins/Core/teleport.lua index 9fffec9a2..4dd13c64d 100644 --- a/Plugins/Core/teleport.lua +++ b/Plugins/Core/teleport.lua @@ -10,7 +10,7 @@ function HandleTPCommand( Split, Player ) elseif( OtherPlayer == Player ) then Player:SendMessage( cChatColor.Green .. "Already there :)" ) else - Player:TeleportTo( OtherPlayer ) + Player:TeleportToEntity( OtherPlayer ) Player:SendMessage( cChatColor.Green .. "You teleported to "..OtherPlayer:GetName().."!" ) OtherPlayer:SendMessage( cChatColor.Green .. Player:GetName().." teleported to you!" ) end -- cgit v1.2.3