Fix RoyaleEconomy integration

This commit is contained in:
Sen2000
2023-09-03 18:03:19 +07:00
parent ed41c1091c
commit 510034af0d

View File

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