Files
src
build.gradle
Code
7 564
src/main/java/com/prestigeascension/PrestigeAscension.java
package com.prestigeascension;
import com.prestigeascension.command.PrestigeCommand;
import com.prestigeascension.animation.AscensionAnimation;
import org.bukkit.plugin.java.JavaPlugin;
public class PrestigeAscension extends JavaPlugin {
private static PrestigeAscension instance;
private AscensionAnimation ascensionAnimation;
@Override
public void onEnable() {
instance = this;
saveDefaultConfig();
ascensionAnimation = new AscensionAnimation(this);
getCommand("prestige").setExecutor(new PrestigeCommand(this));
getLogger().info("PrestigeAscension enabled — ascend with /prestige!");
}
@Override
public void onDisable() {
if (ascensionAnimation != null) ascensionAnimation.cancelAll();
getLogger().info("PrestigeAscension disabled.");
}
public static PrestigeAscension getInstance() { return instance; }
public AscensionAnimation getAscensionAnimation() { return ascensionAnimation; }
}