Search in sources :

Example 1 with ProjectileTrails

use of me.brunorm.skywars.events.ProjectileTrails in project Skywars by TheBrunoRM.

the class Skywars method loadEvents.

public void loadEvents() {
    // sendMessage("Loading events...");
    final FileConfiguration config = this.getConfig();
    final PluginManager pluginManager = this.getServer().getPluginManager();
    if (config.getBoolean("signsEnabled")) {
        pluginManager.registerEvents(new SignEvents(), this);
    }
    if (config.getBoolean("messageSounds.enabled")) {
        pluginManager.registerEvents(new MessageSound(), this);
    }
    if (config.getBoolean("disableWeather")) {
        pluginManager.registerEvents(new DisableWeather(), this);
    }
    if (config.getBoolean("debug.projectileTests")) {
        pluginManager.registerEvents(new ProjectileTrails(), this);
    }
    final Listener[] listeners = { new InteractEvent(), new Events(), new GamesMenu(), new MapMenu(), new KitsMenu(), new SetupEvents(), new ChestManager(), new SetupMenu(), new PlayerInventoryManager() };
    for (final Listener listener : listeners) {
        pluginManager.registerEvents(listener, this);
    }
}
Also used : SignEvents(me.brunorm.skywars.events.SignEvents) ProjectileTrails(me.brunorm.skywars.events.ProjectileTrails) Listener(org.bukkit.event.Listener) SetupEvents(me.brunorm.skywars.events.SetupEvents) GamesMenu(me.brunorm.skywars.menus.GamesMenu) KitsMenu(me.brunorm.skywars.menus.KitsMenu) MapMenu(me.brunorm.skywars.menus.MapMenu) FileConfiguration(org.bukkit.configuration.file.FileConfiguration) PluginManager(org.bukkit.plugin.PluginManager) MessageSound(me.brunorm.skywars.events.MessageSound) InteractEvent(me.brunorm.skywars.events.InteractEvent) SetupMenu(me.brunorm.skywars.menus.SetupMenu) SetupEvents(me.brunorm.skywars.events.SetupEvents) Events(me.brunorm.skywars.events.Events) SignEvents(me.brunorm.skywars.events.SignEvents) DisableWeather(me.brunorm.skywars.events.DisableWeather)

Aggregations

DisableWeather (me.brunorm.skywars.events.DisableWeather)1 Events (me.brunorm.skywars.events.Events)1 InteractEvent (me.brunorm.skywars.events.InteractEvent)1 MessageSound (me.brunorm.skywars.events.MessageSound)1 ProjectileTrails (me.brunorm.skywars.events.ProjectileTrails)1 SetupEvents (me.brunorm.skywars.events.SetupEvents)1 SignEvents (me.brunorm.skywars.events.SignEvents)1 GamesMenu (me.brunorm.skywars.menus.GamesMenu)1 KitsMenu (me.brunorm.skywars.menus.KitsMenu)1 MapMenu (me.brunorm.skywars.menus.MapMenu)1 SetupMenu (me.brunorm.skywars.menus.SetupMenu)1 FileConfiguration (org.bukkit.configuration.file.FileConfiguration)1 Listener (org.bukkit.event.Listener)1 PluginManager (org.bukkit.plugin.PluginManager)1