Search in sources :

Example 1 with RulebookManager

use of org.cubeengine.module.rulebook.bookManagement.RulebookManager in project modules-extra by CubeEngine.

the class Rulebook method onEnable.

@Listener
public void onEnable(GamePreInitializationEvent event) {
    this.folder = mm.getPathFor(Rulebook.class);
    // this.getCore().getFileManager().dropResources(RulebookResource.values());
    Permission getOtherPerm = pm.register(Rulebook.class, "command.get.other", "Allows adding a rulebook to another players inventory", null);
    this.rulebookManager = new RulebookManager(this, i18n);
    cm.addCommand(new RulebookCommands(cm, this, getOtherPerm, i18n));
    em.registerListener(Rulebook.class, new RulebookListener(this, i18n));
}
Also used : Permission(org.cubeengine.libcube.service.permission.Permission) RulebookManager(org.cubeengine.module.rulebook.bookManagement.RulebookManager) RulebookCommands(org.cubeengine.module.rulebook.bookManagement.RulebookCommands) Listener(org.spongepowered.api.event.Listener)

Aggregations

Permission (org.cubeengine.libcube.service.permission.Permission)1 RulebookCommands (org.cubeengine.module.rulebook.bookManagement.RulebookCommands)1 RulebookManager (org.cubeengine.module.rulebook.bookManagement.RulebookManager)1 Listener (org.spongepowered.api.event.Listener)1