mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-20 15:11:25 +01:00
fix old provider method call
This commit is contained in:
parent
5b146f8383
commit
73426f42d3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user