Search in sources :

Example 1 with ListenerLootProtection

use of combatlogx.expansion.loot.protection.listener.ListenerLootProtection in project CombatLogX by SirBlobman.

the class LootProtectionExpansion method onEnable.

@Override
public void onEnable() {
    int minorVersion = VersionUtility.getMinorVersion();
    if (minorVersion < 16) {
        Logger logger = getLogger();
        logger.info("The loot protection expansion requires Spigot 1.16.5 or higher.");
        ICombatLogX plugin = getPlugin();
        ExpansionManager expansionManager = plugin.getExpansionManager();
        expansionManager.disableExpansion(this);
        return;
    }
    new ListenerLootProtection(this).register();
}
Also used : ExpansionManager(com.github.sirblobman.combatlogx.api.expansion.ExpansionManager) ICombatLogX(com.github.sirblobman.combatlogx.api.ICombatLogX) Logger(java.util.logging.Logger) ListenerLootProtection(combatlogx.expansion.loot.protection.listener.ListenerLootProtection)

Aggregations

ICombatLogX (com.github.sirblobman.combatlogx.api.ICombatLogX)1 ExpansionManager (com.github.sirblobman.combatlogx.api.expansion.ExpansionManager)1 ListenerLootProtection (combatlogx.expansion.loot.protection.listener.ListenerLootProtection)1 Logger (java.util.logging.Logger)1