1
0
cuberite-2a/MCServer/Plugins/Core/back.lua
nielsbreu@gmail.com cc4a1cad39 Reduced the amount of tables.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1644 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-05 11:13:21 +00:00

9 lines
414 B
Lua

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