function hd.DisableCommands(V,H,J)if J then main.commandBlocks[H]=true local J=main.pd[H]if J and J.Donor then(main:GetModule("\080\097\114\115\101\114")):ParseMessage(H,"\033\117\110\108\097\115\101\114\101\121\101\115",false)end else main.commandBlocks[H]=nil end end function hd.SetRank(i,H,J,V)if tonumber(J)==nil then J=(main:GetModule("\099\102")):GetRankId(J)end if not H then return errors.Player elseif J>5 or J==5 and H.UserId~=main.ownerId then return"\067\097\110\110\111\116 \115\101\116 \097 \112\108\097\121\101\114\'\115 \114\097\110\107 \097\098\111\118\101 \111\114 \101\113\117\097\108 \116\111 \053 \040\079\119\110\101\114\041\033"else(main:GetModule("\099\102")):SetRank(H,main.ownerId,J,V)end end function hd.UnRank(J,H)(main:GetModule("\099\102")):Unrank(H)end function hd.GetRank(J,H)local V=main.pd[H]if not V then return 0,errors.Player else local J=V.Rank local i=(main:GetModule("\099\102")):GetRankName(J)local P=(main:GetModule("\099\102")):GetRankType(H)return J,i,P end end return hd

function hd:DisableCommands(player, boolean)
	if boolean then
		main.commandBlocks[player] = true
		local pdata = main.pd[player]
		if pdata and pdata.Donor then
			main:GetModule("Parser"):ParseMessage(player, "!unlasereyes", false)
		end
	else
		main.commandBlocks[player] = nil
	end
end


function hd:SetRank(player, rank, rankType)
	if tonumber(rank) == nil then
		rank = main:GetModule("cf"):GetRankId(rank)
	end
	if not player then
		return(errors.Player)
	elseif rank > 5 or (rank == 5 and player.UserId ~= main.ownerId) then
		return("Cannot set a player's rank above or equal to 5 (Owner)!")
	else
		main:GetModule("cf"):SetRank(player, main.ownerId, rank, rankType)
	end
end


function hd:UnRank(player)
	main:GetModule("cf"):Unrank(player)
end


function hd:GetRank(player)
	local pdata = main.pd[player]
	if not pdata then
		return 0, errors.Player
	else
		local rankId = pdata.Rank
		local rankName = main:GetModule("cf"):GetRankName(rankId)
		local rankType = main:GetModule("cf"):GetRankType(player)
		return rankId, rankName, rankType
	end
end



return hd
