use of org.cubeengine.module.rulebook.bookManagement.RulebookCommands 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));
}
Aggregations