No chat to show

This project's files are all here to explore.

Files
src
build.gradle
settings.gradle
Code
17 1,244
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.command.LukeCommand;
import com.bowenchants.listener.AnvilListener;
import com.bowenchants.listener.ChestPopulationListener;
import com.bowenchants.listener.PlayerJoinListener;
import com.bowenchants.listener.ProjectileListener;
import com.bowenchants.listener.VillagerTradeListener;
import com.bowenchants.manager.BookTracker;
import com.bowenchants.manager.EnchantmentManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BowEnchantmentsPlugin extends JavaPlugin {

    private EnchantmentManager enchantmentManager;
    private BookTracker bookTracker;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.enchantmentManager = new EnchantmentManager(this);
        this.bookTracker = new BookTracker(this);
        
        getServer().getPluginManager().registerEvents(new ChestPopulationListener(this), this);
        getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
        getServer().getPluginManager().registerEvents(new VillagerTradeListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(), this);
        getServer().getPluginManager().registerEvents(new AnvilListener(this), this);
        
        EbowCommand ebowCommand = new EbowCommand(this);
        getCommand("ebow").setExecutor(ebowCommand);
        getServer().getPluginManager().registerEvents(ebowCommand, this);
        
        getCommand("luke").setExecutor(new LukeCommand(this));

        EbooksCommand ebooksCommand = new EbooksCommand(this);
        getCommand("ebooks").setExecutor(ebooksCommand);
        getServer().getPluginManager().registerEvents(ebooksCommand, this);

        getCommand("info").setExecutor(new InfoCommand());
        
        getLogger().info("OK");
    }

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