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);
}
}
Aggregations