use of com.github.sirblobman.api.core.CorePlugin in project CombatLogX by SirBlobman.
the class CommandCombatLogXVersion method getSpigotVersion.
private String getSpigotVersion() {
ICombatLogX combatLogX = getCombatLogX();
JavaPlugin plugin = combatLogX.getPlugin();
CorePlugin corePlugin = JavaPlugin.getPlugin(CorePlugin.class);
UpdateManager updateManager = corePlugin.getUpdateManager();
String spigotVersion = updateManager.getSpigotVersion(plugin);
if (spigotVersion == null) {
return "Not Available";
}
return spigotVersion;
}
use of com.github.sirblobman.api.core.CorePlugin in project CombatLogX by SirBlobman.
the class CombatPlugin method onEnable.
@Override
public void onEnable() {
new CommandCombatLogX(this).register();
new CommandCombatTimer(this).register();
new CommandTogglePVP(this).register();
new ListenerConfiguration(this).register();
new ListenerDamage(this).register();
new ListenerPunish(this).register();
new ListenerUntag(this).register();
getDeathListener().register();
this.timerUpdateTask.register();
new UntagTask(this).register();
ExpansionManager expansionManager = getExpansionManager();
expansionManager.enableExpansions();
broadcastEnableMessage();
CorePlugin corePlugin = JavaPlugin.getPlugin(CorePlugin.class);
UpdateManager updateManager = corePlugin.getUpdateManager();
updateManager.addResource(this, 31689L);
}
Aggregations