mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Fixed bug with payments task stops randomly after taxes math get 0 or > 0. One function return fix too.
This commit is contained in:
parent
0240a41665
commit
8e07d57ad6
@ -172,7 +172,7 @@ public class CMIItemStack {
|
||||
meta.setLore(lore);
|
||||
}
|
||||
|
||||
return meta.getLore() == null ? new ArrayList<>() : meta.getLore();
|
||||
return meta.getLore() == null ? new ArrayList<String>() : meta.getLore();
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
@ -140,8 +140,9 @@ public class BufferedEconomy {
|
||||
this.ServerTaxesAccount = Bukkit.getOfflinePlayer(ServerTaxesAccountname);
|
||||
|
||||
if (Jobs.getGCManager().UseTaxes && Jobs.getGCManager().TransferToServerAccount && ServerTaxesAccount != null) {
|
||||
economy.depositPlayer(ServerTaxesAccount, TaxesAmount);
|
||||
|
||||
if(TaxesAmount > 0) {
|
||||
economy.depositPlayer(ServerTaxesAccount, TaxesAmount);
|
||||
}
|
||||
if (ServerTaxesAccount.isOnline()) {
|
||||
if (!Jobs.getActionbarToggleList().containsKey(ServerTaxesAccountname) && Jobs.getGCManager().ActionBarsMessageByDefault)
|
||||
Jobs.getActionbarToggleList().put(ServerTaxesAccountname, true);
|
||||
|
Loading…
Reference in New Issue
Block a user