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:
@@ -26,6 +26,7 @@ import org.bukkit.Material
|
|||||||
import org.bukkit.entity.LivingEntity
|
import org.bukkit.entity.LivingEntity
|
||||||
import org.bukkit.entity.Player
|
import org.bukkit.entity.Player
|
||||||
import org.bukkit.inventory.ItemStack
|
import org.bukkit.inventory.ItemStack
|
||||||
|
import org.bukkit.persistence.PersistentDataType
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
class EcoBoss(
|
class EcoBoss(
|
||||||
@@ -284,6 +285,7 @@ class EcoBoss(
|
|||||||
mob.isPersistent = true
|
mob.isPersistent = true
|
||||||
mob.isCustomNameVisible = true
|
mob.isCustomNameVisible = true
|
||||||
mob.removeWhenFarAway = false
|
mob.removeWhenFarAway = false
|
||||||
|
mob.persistentDataContainer.set(plugin.namespacedKeyFactory.create("boss"), PersistentDataType.STRING, "backwards_compat")
|
||||||
|
|
||||||
val boss = LivingEcoBoss(
|
val boss = LivingEcoBoss(
|
||||||
plugin,
|
plugin,
|
||||||
|
|||||||
Reference in New Issue
Block a user