All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.upperlevel.spigot.gui.Main Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package xyz.upperlevel.spigot.gui;

import lombok.Getter;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;

//TODO implement anvils: https://github.com/WesJD/AnvilGUI
//TODO re-implement the slot checking
//TODO Should I join the Hotbar and Gui HashMaps?
public class Main extends JavaPlugin implements Listener {
    @Getter
    private static Main instance;

    public Main() {
        if(instance == null)
            instance = this;
    }

    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(new GuiEventListener(), this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy