summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/back.lua
blob: e57f224f26ec2c1374c010481e1a1635a80a4ab6 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                             
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:TeleportTo(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