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

9 lines
458 B
Lua
Raw Normal View History

2013-07-27 16:24:03 +01:00
function HandleBackCommand( Split, Player )
if BackCoords[Player:GetName()] == nil then
2013-07-31 17:10:59 +01:00
Player:SendMessage(cChatColor.Rose .. "[INFO] " .. cChatColor.White .. "No known last position")
2013-07-27 16:24:03 +01:00
else
Player:TeleportToCoords(BackCoords[Player:GetName()].x, BackCoords[Player:GetName()].y, BackCoords[Player:GetName()].z)
2013-07-31 17:10:59 +01:00
Player:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Teleported back to your last known position")
2013-07-27 16:24:03 +01:00
end
return true
end