Search in sources :

Example 1 with ListenerGlow

use of combatlogx.expansion.glowing.listener.ListenerGlow in project CombatLogX by SirBlobman.

the class GlowingExpansion method onEnable.

@Override
public void onEnable() {
    Logger logger = getLogger();
    ICombatLogX plugin = getPlugin();
    ExpansionManager expansionManager = plugin.getExpansionManager();
    int minorVersion = VersionUtility.getMinorVersion();
    if (minorVersion < 9) {
        logger.warning("This expansion is made for 1.9+");
        expansionManager.disableExpansion(this);
        return;
    }
    new ListenerGlow(this).register();
}
Also used : ListenerGlow(combatlogx.expansion.glowing.listener.ListenerGlow) ExpansionManager(com.github.sirblobman.combatlogx.api.expansion.ExpansionManager) ICombatLogX(com.github.sirblobman.combatlogx.api.ICombatLogX) Logger(java.util.logging.Logger)

Aggregations

ICombatLogX (com.github.sirblobman.combatlogx.api.ICombatLogX)1 ExpansionManager (com.github.sirblobman.combatlogx.api.expansion.ExpansionManager)1 ListenerGlow (combatlogx.expansion.glowing.listener.ListenerGlow)1 Logger (java.util.logging.Logger)1