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

io.github.parzivalExe.guiApi.GuiEvents.kt Maven / Gradle / Ivy

Go to download

With GuiAPI you can create Guis for your Bukkit/Spigot-Plugin in seconds while at the same time saving many lines of code

The newest version!
package io.github.parzivalExe.guiApi

import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.inventory.InventoryCloseEvent

class GuiEvents : Listener{

    @EventHandler
    fun onCloseGui(event: InventoryCloseEvent) {
        if(GuiManager.isInventoryGui(event.inventory)) {
            val gui = GuiManager.getGuiFromInventory(event.inventory)!!
            gui.finalizeGui()
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy