From 510034af0d3d602cc3a2c705fe7edea2e0acbb73 Mon Sep 17 00:00:00 2001 From: Sen2000 <18487475+SenPr@users.noreply.github.com> Date: Sun, 3 Sep 2023 18:03:19 +0700 Subject: [PATCH] Fix RoyaleEconomy integration --- .../com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt index 519b6ae34..af1ee650d 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/EcoSpigotPlugin.kt @@ -367,8 +367,10 @@ abstract class EcoSpigotPlugin : EcoPlugin() { }, IntegrationLoader("PlayerPoints") { Prices.registerPriceFactory(PriceFactoryPlayerPoints()) }, IntegrationLoader("RoyaleEconomy") { - for (currency in MultiCurrencyHandler.getCurrencies()) { - Prices.registerPriceFactory(PriceFactoryRoyaleEconomy(currency)) + if (!MultiCurrencyHandler.getCurrencies().isNullOrEmpty()) { + for (currency in MultiCurrencyHandler.getCurrencies()) { + Prices.registerPriceFactory(PriceFactoryRoyaleEconomy(currency)) + } } },