Files
src
build.gradle
Code
27 1,457
src/main/java/com/abilitywheel/AbilityWheelPlugin.java
package com.abilitywheel;
import com.abilitywheel.gui.AbilityWheelGUI;
import com.abilitywheel.listener.AbilityListeners;
import com.abilitywheel.listener.PlayerListeners;
import com.abilitywheel.manager.AbilityManager;
import org.bukkit.plugin.java.JavaPlugin;
public class AbilityWheelPlugin extends JavaPlugin {
private static AbilityWheelPlugin instance;
private AbilityManager abilityManager;
private AbilityWheelGUI wheelGUI;
@Override
public void onEnable() {
instance = this;
saveDefaultConfig();
this.abilityManager = new AbilityManager(this);
this.wheelGUI = new AbilityWheelGUI(this);
getServer().getPluginManager().registerEvents(new PlayerListeners(this), this);
getServer().getPluginManager().registerEvents(new AbilityListeners(this), this);
getLogger().info("AbilityWheel enabled — 7 active + 7 passive abilities loaded!");
}
@Override
public void onDisable() {
if (abilityManager != null) {
abilityManager.saveAll();
}
getLogger().info("AbilityWheel disabled.");
}
public static AbilityWheelPlugin getInstance() {
return instance;
}
public AbilityManager getAbilityManager() {
return abilityManager;
}
public AbilityWheelGUI getWheelGUI() {
return wheelGUI;
}
}