9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 16:09:24 +00:00

Fixed compatibility with other plugins

This commit is contained in:
Auxilor
2022-02-18 14:37:01 +00:00
parent 0f8dce74da
commit a741c78b6b

View File

@@ -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,