No chat to show

This project's files are all here to explore.

Files
src
build.gradle
settings.gradle
Code
18 1,568
src/main/java/com/bowenchants/BowEnchantmentsPlugin.java
package com.bowenchants;

import com.bowenchants.command.EbooksCommand;
import com.bowenchants.command.EbowCommand;
import com.bowenchants.command.InfoCommand;
import com.bowenchants.listener.AnvilListener;
import com.bowenchants.listener.ChestPopulationListener;
import com.bowenchants.listener.ProjectileListener;
import com.bowenchants.listener.VillagerTradeListener;
import com.bowenchants.manager.EnchantmentManager;
import lombok.Generated;
import org.bukkit.plugin.java.JavaPlugin;

public class BowEnchantmentsPlugin extends JavaPlugin {
   private EnchantmentManager enchantmentManager;

   public void onEnable() {
      this.saveDefaultConfig();
      this.enchantmentManager = new EnchantmentManager(this);
      this.getServer().getPluginManager().registerEvents(new ChestPopulationListener(this), this);
      this.getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
      this.getServer().getPluginManager().registerEvents(new VillagerTradeListener(this), this);
      this.getServer().getPluginManager().registerEvents(new AnvilListener(this), this);
      EbowCommand var1 = new EbowCommand(this);
      this.getCommand("ebow").setExecutor(var1);
      EbooksCommand var2 = new EbooksCommand(this);
      this.getCommand("ebooks").setExecutor(var2);
      this.getServer().getPluginManager().registerEvents(var2, this);
      this.getCommand("info").setExecutor(new InfoCommand());
      this.getLogger().info("OK");
   }

   public void onDisable() {
      this.getLogger().info("BowEnchantments disabled");
   }

   @Generated
   public EnchantmentManager getEnchantmentManager() {
      return this.enchantmentManager;
   }
}