@Override public void enable() { CommandBook.registerEvents(this); }
@Override public void enable() { // Jingle note manager jingleNoteManager = new JingleNoteManager(); registerCommands(Commands.class); CommandBook.registerEvents(this); }
@Override public void enable() { config = configure(new LocalConfiguration()); CommandBook.registerEvents(this); registerCommands(Commands.class); scheduler.scheduleAtFixedRate(this, 1, 1, TimeUnit.SECONDS); }
@Override public void enable() { CommandBook.registerEvents(this); registerCommands(Commands.class); config = configure(new LocalConfiguration()); }
@Override public void enable() { config = configure(new LocalConfiguration()); CommandBook.registerEvents(this); registerCommands(Commands.class); }
@Override public void enable() { config = new LocalConfiguration(); loadMessages(); CommandBook.registerEvents(this); registerCommands(Commands.class); }
@Override public void enable() { this.config = configure(new LocalConfiguration()); CommandBook.registerEvents(this); registerCommands(Commands.class); }
@Override public void enable() { config = configure(new LocalConfiguration()); CommandBook.registerEvents(this); if (config.useMovementEvent) { CommandBook.registerEvents(new MovementListener()); } registerCommands(Commands.class); server.getScheduler().runTaskTimer(inst, this, 20, 20); }
@Override public void enable() { config = configure(new LocalConfiguration()); registerCommands(Commands.class); CommandBook.registerEvents(this); }
@Override public void enable() { CommandBook.server().getScheduler().scheduleSyncRepeatingTask(CommandBook.inst(), this, CHECK_FREQUENCY, CHECK_FREQUENCY); CommandBook.registerEvents(this); registerCommands(Commands.class); sessionsDir = new File(CommandBook.inst().getDataFolder(), "sessions"); if (!sessionsDir.exists()) { sessionsDir.mkdirs(); } }
@Override public void enable() { spawns = new WrappedSpawnManager(new File(CommandBook.inst().getDataFolder(), "spawns.yml")); config = configure(new LocalConfiguration()); registerCommands(Commands.class); CommandBook.registerEvents(this); }
@Override public void enable() { CommandBook.registerEvents(this); registerCommands(Commands.class); config = configure(new LocalConfiguration()); sessions.registerSessionFactory(TeleportSession.class, new SessionFactory<TeleportSession>() { @Override public TeleportSession createSession(CommandSender user) { return new TeleportSession(TeleportComponent.this); } }); }
@Override public void enable() { registerCommands(Commands.class); CommandBook.registerEvents(this); CommandBook.server().getScheduler().scheduleSyncRepeatingTask(CommandBook.inst(), this, 20 * 2, 20 * 2); }
@Override public void enable() { config = configure(new LocalConfiguration()); if (config.timeLockDelay == 0) { config.timeLockDelay = 20; saveConfig(config); } configureWorldLocks(); registerCommands(Commands.class); CommandBook.registerEvents(this); }
@Override public void enable() { config = configure(new LocalConfiguration()); registerCommands(Commands.class); // Check god mode for existing players, if any for (Player player : CommandBook.server().getOnlinePlayers()) { checkAutoEnable(player); } CommandBook.registerEvents(this); }
@Override public void enable() { CommandBook.inst().createDefaultConfiguration("kits.txt"); // Setup kits kits = new FlatFileKitsManager(new File(CommandBook.inst().getDataFolder(), "kits.txt")); kits.load(); CommandBook.server().getScheduler().scheduleAsyncRepeatingTask( CommandBook.inst(), new GarbageCollector(this), GarbageCollector.CHECK_FREQUENCY, GarbageCollector.CHECK_FREQUENCY); registerCommands(Commands.class); CommandBook.registerEvents(this); }
@Override public void enable() { config = configure(new LocalConfiguration()); // Setup the ban database bans = new CSVBanDatabase(CommandBook.inst().getDataFolder()); bans.load(); CommandBook.registerEvents(this); registerCommands(Commands.class); }
@Override public void enable() { LocalConfiguration config = configure(new LocalConfiguration()); LocationManagerFactory<LocationManager<NamedLocation>> warpsFactory = new FlatFileLocationsManager.LocationsFactory(CommandBook.inst().getDataFolder(), name + "s"); manager = new RootLocationManager<NamedLocation>(warpsFactory, config.perWorld); CommandBook.registerEvents(new WorldListener()); }