summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/back.lua
blob: ade1c9d64c62991c9af7fd6d67c00b3ef621f47c (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: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