Files
cuberite-2a/MCServer/Plugins/Core/top.lua
T

11 lines
374 B
Lua
Raw Normal View History

2012-01-26 22:44:37 +00:00
function HandleTopCommand( Split, Player )
local World = Player:GetWorld()
local PlayerPos = Player:GetPosition()
local Height = World:GetHeight( math.floor(PlayerPos.x), math.floor(PlayerPos.z) )
SetBackCoordinates( Player )
2013-07-01 10:54:34 +00:00
Player:TeleportToCoords( PlayerPos.x, Height+1, PlayerPos.z )
2012-01-26 22:44:37 +00:00
Player:SendMessage("Teleported to the top block")
return true
end