From 9a6bb9f2a1e8dd4123de3283afb95bf80c7d70a6 Mon Sep 17 00:00:00 2001 From: HXS__ <112705581+FoxLlN@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:33:49 +1000 Subject: [PATCH] import change --- .../kotlin/com/mcstarrysky/land/flag/PermDamageAnimals.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/mcstarrysky/land/flag/PermDamageAnimals.kt b/src/main/kotlin/com/mcstarrysky/land/flag/PermDamageAnimals.kt index 58f134e..2d87b21 100644 --- a/src/main/kotlin/com/mcstarrysky/land/flag/PermDamageAnimals.kt +++ b/src/main/kotlin/com/mcstarrysky/land/flag/PermDamageAnimals.kt @@ -10,8 +10,10 @@ import org.bukkit.entity.Player import org.bukkit.event.entity.EntityDamageByEntityEvent import org.bukkit.inventory.ItemFlag import org.bukkit.inventory.ItemStack -import taboolib.internal.xseries.XMaterial -import taboolib.util.item.ItemBuilder +import taboolib.common.platform.Awake +import taboolib.common.platform.event.SubscribeEvent +import taboolib.library.xseries.XMaterial +import taboolib.platform.util.buildItem /** * Land @@ -40,7 +42,7 @@ object PermDamageAnimals : Permission { get() = true override fun generateMenuItem(land: Land): ItemStack { - return ItemBuilder(XMaterial.IRON_SWORD){ + return buildItem(XMaterial.IRON_SWORD){ name = "&f攻击动物 ${land.getFlagOrNull(id).display}" lore += listOf( "&7允许行为:",