use of io.github.wysohn.triggerreactor.bukkit.manager.event.TriggerReactorStartEvent in project TriggerReactor by wysohn.
the class AbstractJavaPlugin method onEnable.
@Override
public void onEnable() {
super.onEnable();
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
PluginCommand trg = this.getCommand("triggerreactor");
trg.setExecutor(this);
registerAPIs();
initBungeeHelper();
initMysql();
core.onCoreEnable(this);
migrateOldConfig();
for (Manager manager : Manager.getManagers()) {
manager.reload();
}
Bukkit.getScheduler().runTask(this, () -> Bukkit.getPluginManager().callEvent(new TriggerReactorStartEvent()));
}
Aggregations