/*
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
 *
 * Copyright (c) 2015 - 2025 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
import net.ccbluex.liquidbounce.features.module.Category
import net.ccbluex.liquidbounce.features.module.ClientModule
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.disablers.*
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", Category.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)
    }

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

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

}
