From cff6ff2223247997d357fc9421a2cfa3a5a54598 Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Fri, 28 Jun 2013 18:43:29 +0000 Subject: Added a function that allows you to change the /back coordinates. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1630 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/top.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'MCServer/Plugins/Core/top.lua') diff --git a/MCServer/Plugins/Core/top.lua b/MCServer/Plugins/Core/top.lua index 91f9aa297..64b53eff6 100644 --- a/MCServer/Plugins/Core/top.lua +++ b/MCServer/Plugins/Core/top.lua @@ -3,9 +3,7 @@ function HandleTopCommand( Split, Player ) local PlayerPos = Player:GetPosition() local Height = World:GetHeight( math.floor(PlayerPos.x), math.floor(PlayerPos.z) ) - X[Player:GetName()] = Player:GetPosX() - Y[Player:GetName()] = Player:GetPosY() - Z[Player:GetName()] = Player:GetPosZ() + SetBackCoordinates( Player ) Player:TeleportTo( PlayerPos.x, Height+1, PlayerPos.z ) Player:SendMessage("Teleported to the top block") -- cgit v1.2.3