--[[
	Cmdr setup
]]


Cmdr:SetActivationKeys({
	Enum.KeyCode.Backquote,
	Enum.KeyCode.BackSlash,
})

Cmdr:SetEnabled(true)
if not UserInputService.KeyboardEnabled then
	if Util.isPlayerIDInTable(localPlayer, Conf.reference_games_user_ids) then
		local cmdrFrame = ReplicatedStorage.Assets.GuiObjects.Frames.CmdrFrame
		local cmdrButton = cmdrFrame.CmdrButton
		local cmdrGui = playerGui:WaitForChild("Cmdr")
		cmdrButton.Activated:Connect(function()
			local window = Cmdr.Interface.Window
			if window:IsVisible() then
				cmdrFrame.Position = UDim2.new(0, 0, 0, 0)
				window:Hide()
			else
				cmdrFrame.Position = UDim2.new(0, 0, 0.1, 0)
				window:Show()
			end
		end)
		cmdrFrame.Parent = cmdrGui
	end
end

local ConsoleEventHandlers = require(ReplicatedStorage.Libraries.ConsoleEventHandlers)
