fix old provider method call

This commit is contained in:
JRoy 2024-12-30 08:48:07 -05:00
parent 5b146f8383
commit 73426f42d3
No known key found for this signature in database
GPG Key ID: FAD510B503869E7D

View File

@ -43,7 +43,8 @@ public class Commandpay extends EssentialsLoopCommand {
final BigDecimal amount;
if (ess.getSettings().isPerPlayerLocale()) {
amount = NumberUtil.parseStringToBDecimal(ogStr, user.getPlayerLocale(ess.getProviders().get(PlayerLocaleProvider.class).getLocale(user.getBase())));
final String playerLocale = ess.provider(PlayerLocaleProvider.class).getLocale(user.getBase());
amount = NumberUtil.parseStringToBDecimal(ogStr, user.getPlayerLocale(playerLocale));
} else {
amount = NumberUtil.parseStringToBDecimal(ogStr);
}