Search in sources :

Example 1 with ImmutableLookupData

use of org.cubeengine.module.vigil.data.ImmutableLookupData 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);
}
Also used : LookupDataParser(org.cubeengine.module.vigil.commands.LookupDataParser) ImmutableLookupData(org.cubeengine.module.vigil.data.ImmutableLookupData) LookupDataBuilder(org.cubeengine.module.vigil.data.LookupDataBuilder) QueryManager(org.cubeengine.module.vigil.storage.QueryManager) VigilCommands(org.cubeengine.module.vigil.commands.VigilCommands) ImmutableLookupData(org.cubeengine.module.vigil.data.ImmutableLookupData) LookupData(org.cubeengine.module.vigil.data.LookupData) ReportManager(org.cubeengine.module.vigil.report.ReportManager) VigilAdminCommands(org.cubeengine.module.vigil.commands.VigilAdminCommands) VigilLookupCommands(org.cubeengine.module.vigil.commands.VigilLookupCommands) Listener(org.spongepowered.api.event.Listener)

Aggregations

LookupDataParser (org.cubeengine.module.vigil.commands.LookupDataParser)1 VigilAdminCommands (org.cubeengine.module.vigil.commands.VigilAdminCommands)1 VigilCommands (org.cubeengine.module.vigil.commands.VigilCommands)1 VigilLookupCommands (org.cubeengine.module.vigil.commands.VigilLookupCommands)1 ImmutableLookupData (org.cubeengine.module.vigil.data.ImmutableLookupData)1 LookupData (org.cubeengine.module.vigil.data.LookupData)1 LookupDataBuilder (org.cubeengine.module.vigil.data.LookupDataBuilder)1 ReportManager (org.cubeengine.module.vigil.report.ReportManager)1 QueryManager (org.cubeengine.module.vigil.storage.QueryManager)1 Listener (org.spongepowered.api.event.Listener)1