From 6028888278eadc74d3d9b28e25a3a89b050c2f70 Mon Sep 17 00:00:00 2001 From: Max <67809373+98ping@users.noreply.github.com> Date: Wed, 27 Dec 2023 13:51:23 -0800 Subject: [PATCH] feat: fix wool colors for vouchers --- .../matrixstudios/alchemist/commands/vouchers/VoucherCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/vouchers/VoucherCommand.kt b/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/vouchers/VoucherCommand.kt index b2850aaa8..5e1815525 100644 --- a/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/vouchers/VoucherCommand.kt +++ b/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/vouchers/VoucherCommand.kt @@ -86,7 +86,7 @@ class VoucherCommand : BaseCommand() UUID.randomUUID(), template, !duration.equals("perm", ignoreCase = true), - System.currentTimeMillis() + (TimeUtil.parseTime(duration) * 1000L), + if (!duration.equals("perm", ignoreCase = true)) System.currentTimeMillis().plus(TimeUtil.parseTime(duration) * 1000L) else Long.MAX_VALUE, false, BukkitPunishmentFunctions.getSenderUUID(sender), target.uuid