io.github.parzivalExe.guiApi.GuiEvents.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiapi-mc1.8 Show documentation
Show all versions of guiapi-mc1.8 Show documentation
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()
}
}
}