Skip to content

Commit

Permalink
Merge pull request #318
Browse files Browse the repository at this point in the history
Fix RoyaleEconomy integration
  • Loading branch information
WillFP committed Oct 16, 2023
2 parents 8052ffa + 510034a commit 59dfeeb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
},

Expand Down

0 comments on commit 59dfeeb

Please sign in to comment.