From a741c78b6bd7a31ce397766ca4a011343466b9f9 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 18 Feb 2022 14:37:01 +0000 Subject: [PATCH] Fixed compatibility with other plugins --- .../src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt index ef79bf6..39f0185 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt @@ -26,6 +26,7 @@ import org.bukkit.Material import org.bukkit.entity.LivingEntity import org.bukkit.entity.Player import org.bukkit.inventory.ItemStack +import org.bukkit.persistence.PersistentDataType import java.util.* class EcoBoss( @@ -284,6 +285,7 @@ class EcoBoss( mob.isPersistent = true mob.isCustomNameVisible = true mob.removeWhenFarAway = false + mob.persistentDataContainer.set(plugin.namespacedKeyFactory.create("boss"), PersistentDataType.STRING, "backwards_compat") val boss = LivingEcoBoss( plugin,