diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/EcoBossesPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/EcoBossesPlugin.kt index f5eb5db..a88eb88 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/EcoBossesPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/EcoBossesPlugin.kt @@ -32,11 +32,17 @@ class EcoBossesPlugin : LibReforgePlugin(525, 10635, "&9") { } override fun handleReloadAdditional() { + Bosses.getAllAlive().forEach { it.remove() } + logger.info(Bosses.values().size.toString() + " Bosses Loaded") AutospawnHandler.startSpawning(this) } + override fun handleDisableAdditional() { + Bosses.getAllAlive().forEach { it.remove() } + } + override fun loadPluginCommands(): List { return listOf( CommandEcobosses(this)