summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/top.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/Core/top.lua')
-rw-r--r--MCServer/Plugins/Core/top.lua4
1 files changed, 1 insertions, 3 deletions
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")