Files
src
build.gradle
Code
15 1,033
src/main/java/com/mutipotion/MutiPotion.java
package com.mutipotion;
import com.mutipotion.command.PotionMenuCommand;
import com.mutipotion.inventory.gui.GUIListener;
import com.mutipotion.inventory.gui.GUIManager;
import com.mutipotion.listener.CauldronListener;
import com.mutipotion.listener.WitchHunterListener;
import lombok.Getter;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class MutiPotion extends JavaPlugin {
private GUIManager guiManager;
private NamespacedKey combinedKey;
private NamespacedKey enhancedKey;
private NamespacedKey witchHunterKey;
private NamespacedKey antiHunterKey;
@Override
public void onEnable() {
this.combinedKey = new NamespacedKey(this, "combined");
this.enhancedKey = new NamespacedKey(this, "enhanced");
this.witchHunterKey = new NamespacedKey(this, "witch_hunter");
this.antiHunterKey = new NamespacedKey(this, "anti_hunter");
this.guiManager = new GUIManager();
getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
getServer().getPluginManager().registerEvents(new CauldronListener(this), this);
getServer().getPluginManager().registerEvents(new WitchHunterListener(this), this);
getCommand("potionmenu").setExecutor(new PotionMenuCommand(this));
getLogger().info("MutiPotion has been enabled!");
}
@Override
public void onDisable() {
getLogger().info("MutiPotion has been disabled!");
}
}