Source:
<code>public boolean isUnderLimit(CurrencyType type, Double amount) { Player player = this.getPlayer(); if (player == null) return true; if (amount == 0) return true; CurrencyLimit limit = Jobs.getGCManager().getLimit(type); if (!limit.isEnabled()) return true; PaymentData data = getPaymentLimit(); Integer value = this.limits.get(type); if (data.IsReachedLimit(type, value == null ? 0 : value)) { if (player.isOnline() && !data.isInformed() && !data.isReseted()) { if(Jobs.getGCManager().useMaxPaymentCurve) { player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit")); player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit2")); player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit3")); }else { player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit")); player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit2")); <START> data.setInformed(); <END> } data.setInformed(); } if (data.IsAnnounceTime(limit.getAnnouncementDelay()) && player.isOnline()) { Jobs.getActionBar().send(player, Jobs.getLanguage().getMessage("command.limit.output." + type.getName().toLowerCase() + "time", "%time%", TimeManage.to24hourShort(data.GetLeftTime(type)))); } if (data.isReseted()) data.setReseted(false); return false; } data.AddAmount(type, amount); return true; }</code><technical_language>Double? :arrow_down:</technical_language>

Target:
public boolean isUnderLimit(CurrencyType type, Double amount) { Player player = this.getPlayer(); if (player == null) return true; if (amount == 0) return true; CurrencyLimit limit = Jobs.getGCManager().getLimit(type); if (!limit.isEnabled()) return true; PaymentData data = getPaymentLimit(); Integer value = this.limits.get(type); if (data.IsReachedLimit(type, value == null ? 0 : value)) { if (player.isOnline() && !data.isInformed() && !data.isReseted()) { if(Jobs.getGCManager().useMaxPaymentCurve) { player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit")); player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit2")); player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit3")); }else { player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit")); player.sendMessage(Jobs.getLanguage().getMessage("command.limit.output.reached" + type.getName().toLowerCase() + "limit2")); } data.setInformed(); } if (data.IsAnnounceTime(limit.getAnnouncementDelay()) && player.isOnline()) { Jobs.getActionBar().send(player, Jobs.getLanguage().getMessage("command.limit.output." + type.getName().toLowerCase() + "time", "%time%", TimeManage.to24hourShort(data.GetLeftTime(type)))); } if (data.isReseted()) data.setReseted(false); return false; } data.AddAmount(type, amount); return true; }