Files
src
build.gradle
Code
16 707
src/main/java/com/example/panelgui/PanelGUI.java
package com.example.panelgui;
import com.example.panelgui.commands.PanelCommand;
import com.example.panelgui.commands.ShardShopCommand;
import com.example.panelgui.economy.ShardsEconomy;
import com.example.panelgui.economy.ShardsEconomyImpl;
import com.example.panelgui.inventory.gui.GUIListener;
import com.example.panelgui.inventory.gui.GUIManager;
import com.example.panelgui.listeners.ChatInputListener;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class PanelGUI extends JavaPlugin {
@Getter
private GUIManager guiManager;
@Getter
private ChatInputListener chatInputListener;
@Getter
private ShardsEconomy shardsEconomy;
@Override
public void onEnable() {
this.guiManager = new GUIManager();
this.chatInputListener = new ChatInputListener(this);
this.shardsEconomy = new ShardsEconomyImpl(this);
GUIListener guiListener = new GUIListener(this.guiManager);
Bukkit.getPluginManager().registerEvents(guiListener, this);
Bukkit.getPluginManager().registerEvents(this.chatInputListener, this);
this.getCommand("panel").setExecutor(new PanelCommand(this));
this.getCommand("shardshop").setExecutor(new ShardShopCommand(this));
this.getLogger().info("PanelGUI has been enabled!");
}
@Override
public void onDisable() {
this.getLogger().info("PanelGUI has been disabled!");
}
}