1
0
cuberite-2a/MCServer/Plugins/Core/back.lua
nielsbreu@gmail.com 0ba7a42762 Updated the /back and /top command.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1636 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-01 10:54:34 +00:00

9 lines
438 B
Lua

function HandleBackCommand( Split, Player )
if (X[Player:GetName()] == nil) or (Y[Player:GetName()] == nil) or (Z[Player:GetName()] == nil) then
Player:SendMessage(cChatColor.Green .. "There is no last position known")
else
Player:TeleportToCoords(X[Player:GetName()], Y[Player:GetName()], Z[Player:GetName()])
Player:SendMessage(cChatColor.Green .. "You teleported back to your last known position")
end
return true
end