From 476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 2 Mar 2013 14:43:46 +0000 Subject: Core: Updated with new features (contributed by STR_Warrior) http://forum.mc-server.org/showthread.php?tid=4&pid=6634#pid6634 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1235 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/top.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'MCServer/Plugins/Core/top.lua') 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") -- cgit v1.2.3