diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt index 05acdbe2..0937a994 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/EcoEnchant.kt @@ -171,7 +171,7 @@ abstract class EcoEnchant( } private fun checkDependencies() { - val missingPlugins = mutableListOf() + val missingPlugins = mutableSetOf() for (dependency in config.getStrings("dependencies")) { if (!Bukkit.getPluginManager().plugins.map { it.name }.containsIgnoreCase(dependency)) { diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/MissingDependencyException.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/MissingDependencyException.kt index f2d60c41..6da9b010 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/MissingDependencyException.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/MissingDependencyException.kt @@ -4,7 +4,7 @@ import com.willfp.eco.core.EcoPlugin import com.willfp.ecoenchants.EcoEnchantsPlugin class MissingDependencyException( - val plugins: List + val plugins: Set ) : Exception() { override val message = "Missing the following plugins: ${plugins.joinToString(", ")}" } @@ -12,7 +12,7 @@ class MissingDependencyException( // Plugin names mapped to enchants that aren't installed. private val prompts = mutableMapOf() -fun addPluginPrompt(plugin: EcoEnchantsPlugin, plugins: List) { +fun addPluginPrompt(plugin: EcoEnchantsPlugin, plugins: Set) { if (!plugin.isLoaded) { return }