1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +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:
sync667 2018-10-30 18:41:32 +01:00
parent 0240a41665
commit 8e07d57ad6
2 changed files with 4 additions and 3 deletions

View File

@ -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<>();
}

View File

@ -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);