use of io.github.wysohn.triggerreactor.sponge.bridge.SpongeWrapper in project TriggerReactor by wysohn.
the class TriggerReactor method onConstruct.
@Listener
public void onConstruct(GameInitializationEvent event) {
onCoreEnable();
SYNC_EXECUTOR = Sponge.getScheduler().createSyncExecutor(this);
WRAPPER = new SpongeWrapper();
try {
executorManager = new ExecutorManager(this);
} catch (ScriptException | IOException e) {
initFailed(e);
return;
}
try {
placeholderManager = new PlaceholderManager(this);
} catch (ScriptException | IOException e) {
initFailed(e);
return;
}
this.scriptEditManager = new ScriptEditManager(this);
this.locationManager = new PlayerLocationManager(this);
// this.permissionManager = new PermissionManager(this);
this.selectionManager = new AreaSelectionManager(this);
this.invEditManager = new InventoryEditManager(this);
this.clickManager = new ClickTriggerManager(this);
this.walkManager = new WalkTriggerManager(this);
this.cmdManager = new CommandTriggerManager(this);
this.invManager = new InventoryTriggerManager(this);
this.areaManager = new AreaTriggerManager(this);
this.customManager = new CustomTriggerManager(this);
this.repeatManager = new RepeatingTriggerManager(this);
this.namedTriggerManager = new NamedTriggerManager(this);
tpsHelper = new Lag();
Sponge.getScheduler().createTaskBuilder().execute(tpsHelper).delayTicks(100L).intervalTicks(1L).submit(this);
}
Aggregations