use of net.dzikoysk.funnyguilds.element.gui.GuiActionHandler in project FunnyGuilds by FunnyGuilds.
the class FunnyGuilds method onEnable.
@Override
public void onEnable() {
new ScoreboardStack(this).start();
new Manager().start();
new MetricsCollector(this).start();
AsynchronouslyRepeater repeater = AsynchronouslyRepeater.getInstance();
repeater.start();
PluginManager pluginManager = Bukkit.getPluginManager();
PluginConfig config = Settings.getConfig();
pluginManager.registerEvents(new GuiActionHandler(), this);
pluginManager.registerEvents(new EntityDamage(), this);
pluginManager.registerEvents(new EntityInteract(), this);
pluginManager.registerEvents(new PlayerChat(), this);
pluginManager.registerEvents(new PlayerDeath(), this);
pluginManager.registerEvents(new PlayerJoin(this), this);
pluginManager.registerEvents(new PlayerKick(), this);
pluginManager.registerEvents(new PlayerLogin(), this);
pluginManager.registerEvents(new PlayerQuit(), this);
if (config.regionsEnabled) {
pluginManager.registerEvents(new BlockBreak(), this);
pluginManager.registerEvents(new BlockIgnite(), this);
pluginManager.registerEvents(new BlockPlace(), this);
pluginManager.registerEvents(new BucketAction(), this);
pluginManager.registerEvents(new EntityExplode(), this);
pluginManager.registerEvents(new HangingBreak(), this);
pluginManager.registerEvents(new HangingPlace(), this);
pluginManager.registerEvents(new PlayerCommand(), this);
pluginManager.registerEvents(new PlayerInteract(), this);
if (config.eventMove) {
pluginManager.registerEvents(new PlayerMove(), this);
}
if (config.eventPhysics) {
pluginManager.registerEvents(new BlockPhysics(), this);
}
}
this.eventManager.enable();
this.patch();
Version.isNewAvailable(getServer().getConsoleSender(), true);
PluginHook.init();
FunnyLogger.info("~ Created by FunnyGuilds Team ~");
}
Aggregations