diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-02 15:43:46 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-02 15:43:46 +0100 |
commit | 476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f (patch) | |
tree | 5174a452ff68ead6f25401a076752afa6323f591 /MCServer/Plugins/Core/top.lua | |
parent | Fixed gcc compilation (diff) | |
download | cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.tar cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.tar.gz cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.tar.bz2 cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.tar.lz cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.tar.xz cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.tar.zst cuberite-476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f.zip |
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")
|