/*
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
 *
 * Copyright (c) 2015 - 2026 CCBlueX
 *
 * LiquidBounce is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * LiquidBounce is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
 */
package net.ccbluex.liquidbounce.features.module.modules.exploit.disabler

import net.ccbluex.liquidbounce.config.autoconfig.AutoConfig
import net.ccbluex.liquidbounce.features.module.ClientModule
import net.ccbluex.liquidbounce.features.module.ModuleCategories
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerAdvancedAntiCheat1910
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerCubeCraft
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerGrimSpectate
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerHypixel
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerHypixelScaffold
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerLiveOverflow
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerMinelandFly
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerMiniblox
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerSpigotSpam
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerSwingOrder
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerVanillaSpeed
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerVerusCombat
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerVerusExperimental
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerVerusScaffoldG
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerVulcanRiptide
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.DisablerVulcanScaffold
import net.ccbluex.liquidbounce.utils.client.chat
import net.ccbluex.liquidbounce.utils.client.regular

/**
 * A disabler module
 *
 * Disables either a specific anti-cheat or server.
 */
object ModuleDisabler : ClientModule("Disabler", ModuleCategories.EXPLOIT) {

    init {
        tree(DisablerGrimSpectate)
        tree(DisablerVulcanScaffold)
        tree(DisablerVulcanRiptide)
        tree(DisablerAdvancedAntiCheat1910)
        tree(DisablerSpigotSpam)
        tree(DisablerVanillaSpeed)
        tree(DisablerSwingOrder)
        tree(DisablerLiveOverflow)
        tree(DisablerMinelandFly)
        tree(DisablerVerusCombat)
        tree(DisablerVerusExperimental)
        tree(DisablerVerusScaffoldG)
        tree(DisablerHypixel)
        tree(DisablerHypixelScaffold)
        tree(DisablerMiniblox)
        tree(DisablerCubeCraft)
    }

    override fun onEnabled() {
        if (AutoConfig.loadingNow) {
            return
        }

        chat(regular(message("info")))
        super.onEnabled()
    }

}
