If in cooldown you can no longer place the voucher.

This commit is contained in:
Brianna 2019-06-03 22:00:21 -04:00
parent 7f19b45007
commit 2818a88138

View File

@ -51,16 +51,15 @@ public class PlayerInteractListener implements Listener {
}
}
UUID uuid = player.getUniqueId();
event.setCancelled(true);
if (instance.getCoolDowns().isOnCoolDown(uuid)) {
player.sendMessage(instance.getLocale().getMessage("event.general.cooldown", instance.getCoolDowns().getTime(uuid), voucher.getName(true)));
return;
}
event.setCancelled(true);
if (voucher.isConfirm()) {
new ConfirmMenu(instance,
() -> instance.getVoucherExecutor().redeemVoucher(player, voucher, item, true, event),