diff options
Diffstat (limited to 'MCServer/Plugins/Core/top.lua')
-rw-r--r-- | MCServer/Plugins/Core/top.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MCServer/Plugins/Core/top.lua b/MCServer/Plugins/Core/top.lua index 0f7a8f95f..91f9aa297 100644 --- a/MCServer/Plugins/Core/top.lua +++ b/MCServer/Plugins/Core/top.lua @@ -3,7 +3,9 @@ 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()
Player:TeleportTo( PlayerPos.x, Height+1, PlayerPos.z )
Player:SendMessage("Teleported to the top block")
|