use of org.cubeengine.module.vigil.report.ReportManager in project modules-extra by CubeEngine.
the class Vigil method onEnable.
@Listener
public void onEnable(GameInitializationEvent event) {
this.tf = mm.getThreadFactory(Vigil.class);
ReportManager reportManager = new ReportManager(this, em, i18n);
qm = new QueryManager(tf, bd.getDatabase().getCollection("vigil"), reportManager, i18n, plugin);
this.cm.getProviders().register(this, new LookupDataParser(i18n), LookupData.class);
;
VigilCommands vc = new VigilCommands(sm, i18n, cm);
cm.addCommand(vc);
vc.addCommand(new VigilAdminCommands(cm, i18n, this));
cm.addCommands(vc, this, new VigilLookupCommands(cm, i18n, qm));
em.registerListener(Vigil.class, new ToolListener(pm, qm));
DataRegistration<LookupData, ImmutableLookupData> dr = DataRegistration.<LookupData, ImmutableLookupData>builder().dataClass(LookupData.class).immutableClass(ImmutableLookupData.class).builder(new LookupDataBuilder()).manipulatorId("vigil-lookup").dataName("CubeEngine vigil Lookup Data").buildAndRegister(plugin);
}
Aggregations