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();
}
Aggregations