21 lines
468 B
Kotlin
21 lines
468 B
Kotlin
package pw.hamzantal.shopreborn
|
|
|
|
import hazae41.minecraft.kutils.bukkit.msg
|
|
import org.bukkit.event.inventory.InventoryClickEvent
|
|
|
|
fun baseListener(e: InventoryClickEvent) {
|
|
if (e.inventory == Configurations.main.inventory) {
|
|
mainClick(e)
|
|
return
|
|
}
|
|
|
|
|
|
}
|
|
|
|
fun mainClick(e: InventoryClickEvent) {
|
|
val main = Configurations.main
|
|
e.isCancelled = true;
|
|
if (e.rawSlot > e.inventory.size) return
|
|
|
|
e.whoClicked.msg(e.rawSlot.toString())
|
|
} |