From ec0ef81e2cf52066b8084933dbdf2ff8145c7c6b Mon Sep 17 00:00:00 2001 From: 98ping <67809373+98ping@users.noreply.github.com> Date: Sat, 13 Aug 2022 20:10:37 -0700 Subject: [PATCH] fix something that wasnt in there for some reason --- .idea/codestream.xml | 2 +- .../alchemist/commands/grants/menu/grant/DurationMenu.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.idea/codestream.xml b/.idea/codestream.xml index f24bf1672..d08a49f03 100644 --- a/.idea/codestream.xml +++ b/.idea/codestream.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/grants/menu/grant/DurationMenu.kt b/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/grants/menu/grant/DurationMenu.kt index 59d36770d..2effeb70d 100644 --- a/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/grants/menu/grant/DurationMenu.kt +++ b/spigot/src/main/kotlin/ltd/matrixstudios/alchemist/commands/grants/menu/grant/DurationMenu.kt @@ -100,6 +100,8 @@ class DurationMenu(val player: Player, val rank: Rank, val target: GameProfile) .thatExcludesNonPlayersWithMessage("Go away evil console!") val con: Conversation = factory.buildConversation(player) player.beginConversation(con) + } else if (time == "Permanent") { + ReasonMenu(player, rank, target, Long.MAX_VALUE).updateMenu() } else { ReasonMenu(player, rank, target, TimeUtil.parseTime(time) * 1000L).updateMenu() }