mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-12 18:31:32 +01:00
Fix when points/money and exp displaying even payment method is disabled
Fixes #844
This commit is contained in:
parent
393cfac66f
commit
3c74349f69
@ -236,15 +236,15 @@ public class GuiManager {
|
||||
String itemName = jInfo.getRealisticName();
|
||||
String val = "";
|
||||
|
||||
if (income != 0.0)
|
||||
if (income != 0.0 && Jobs.getGCManager().PaymentMethodsMoney)
|
||||
val += Jobs.getLanguage().getMessage("command.info.help.money", "%money%", incomeColor
|
||||
+ String.format(Jobs.getGCManager().getDecimalPlacesMoney(), income));
|
||||
|
||||
if (points != 0.0)
|
||||
if (points != 0.0 && Jobs.getGCManager().PaymentMethodsPoints)
|
||||
val += Jobs.getLanguage().getMessage("command.info.help.points", "%points%", pointsColor
|
||||
+ String.format(Jobs.getGCManager().getDecimalPlacesPoints(), points));
|
||||
|
||||
if (xp != 0.0)
|
||||
if (xp != 0.0 && Jobs.getGCManager().PaymentMethodsExp)
|
||||
val += Jobs.getLanguage().getMessage("command.info.help.exp", "%exp%", xpColor
|
||||
+ String.format(Jobs.getGCManager().getDecimalPlacesExp(), xp));
|
||||
|
||||
@ -396,15 +396,15 @@ public class GuiManager {
|
||||
String itemName = jInfo.getRealisticName();
|
||||
String val = "";
|
||||
|
||||
if (income != 0.0)
|
||||
if (income != 0.0 && Jobs.getGCManager().PaymentMethodsMoney)
|
||||
val += Jobs.getLanguage().getMessage("command.info.help.money", "%money%", incomeColor
|
||||
+ String.format(Jobs.getGCManager().getDecimalPlacesMoney(), income));
|
||||
|
||||
if (points != 0.0)
|
||||
if (points != 0.0 && Jobs.getGCManager().PaymentMethodsPoints)
|
||||
val += Jobs.getLanguage().getMessage("command.info.help.points", "%points%", pointsColor
|
||||
+ String.format(Jobs.getGCManager().getDecimalPlacesPoints(), points));
|
||||
|
||||
if (xp != 0.0)
|
||||
if (xp != 0.0 && Jobs.getGCManager().PaymentMethodsExp)
|
||||
val += Jobs.getLanguage().getMessage("command.info.help.exp", "%exp%", xpColor
|
||||
+ String.format(Jobs.getGCManager().getDecimalPlacesExp(), xp));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user