Files
src
build.gradle
Code
7 1,139
src/main/java/com/customscythes/CustomScythes.java
package com.customscythes;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public final class CustomScythes extends JavaPlugin {
private ScytheManager scytheManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.scytheManager = new ScytheManager(this);
getServer().getPluginManager().registerEvents(new ScytheListener(this), this);
scytheManager.registerRecipes();
getLogger().info("CustomScythes enabled - 12 scythes loaded!");
}
@Override
public void onDisable() {
if (scytheManager != null) {
scytheManager.shutdown();
}
getLogger().info("CustomScythes disabled.");
}
}