forked from SteamWar/SteamWar
Fix TNTLeague
This commit is contained in:
@@ -22,14 +22,13 @@ package de.steamwar.kotlin
|
||||
import de.steamwar.inventory.SWInventory
|
||||
import org.bukkit.entity.Player
|
||||
import org.bukkit.event.inventory.InventoryClickEvent
|
||||
import org.bukkit.inventory.Inventory
|
||||
import org.bukkit.inventory.ItemStack
|
||||
|
||||
abstract class KotlinInventory(val player: Player) {
|
||||
|
||||
private val inv: SWInventory by lazy { SWInventory(player) { createInventory() } }
|
||||
private val inv: SWInventory by lazy { createInventory() }
|
||||
|
||||
abstract fun createInventory(): Inventory
|
||||
abstract fun createInventory(): SWInventory
|
||||
|
||||
fun open() = inv.open()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user