Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Nov 30, 2024
1 parent b1c51db commit cd007e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.ess3.api.MaxMoneyException;
import net.ess3.api.TranslatableException;
import net.ess3.api.events.UserBalanceUpdateEvent;
import net.ess3.provider.PlayerLocaleProvider;
import org.bukkit.Server;

import java.math.BigDecimal;
Expand Down Expand Up @@ -42,7 +43,7 @@ public void run(final Server server, final User user, final String commandLabel,

final BigDecimal amount;
if (ess.getSettings().isPerPlayerLocale()) {
amount = NumberUtil.parseStringToBDecimal(ogStr, user.getPlayerLocale(ess.getPlayerLocaleProvider().getLocale(user.getBase())));
amount = NumberUtil.parseStringToBDecimal(ogStr, user.getPlayerLocale(ess.getProviders().get(PlayerLocaleProvider.class).getLocale(user.getBase())));
} else {
amount = NumberUtil.parseStringToBDecimal(ogStr);
}
Expand Down

0 comments on commit cd007e8

Please sign in to comment.