1
0
cuberite-2a/MCServer/Plugins/Core/back.lua

9 lines
406 B
Lua
Raw Normal View History

2013-07-27 11:24:03 -04:00
function HandleBackCommand( Split, Player )
if BackCoords[Player:GetName()] == nil then
Player:SendMessage(cChatColor.Green .. "There is no last position known")
else
Player:TeleportToCoords(BackCoords[Player:GetName()].x, BackCoords[Player:GetName()].y, BackCoords[Player:GetName()].z)
Player:SendMessage(cChatColor.Green .. "You teleported back to your last known position")
end
return true
end