From e16819e7f4f48e9b637cb739ce0cd5c706509f45 Mon Sep 17 00:00:00 2001 From: Boy Date: Thu, 1 Feb 2024 23:56:08 +0100 Subject: [PATCH] refactor: use geary cooldown-system --- src/main/kotlin/com/mineinabyss/bonfire/BonfireCommands.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/mineinabyss/bonfire/BonfireCommands.kt b/src/main/kotlin/com/mineinabyss/bonfire/BonfireCommands.kt index 08826f1..d745fd9 100644 --- a/src/main/kotlin/com/mineinabyss/bonfire/BonfireCommands.kt +++ b/src/main/kotlin/com/mineinabyss/bonfire/BonfireCommands.kt @@ -172,7 +172,7 @@ class BonfireCommands : IdofrontCommandExecutor(), TabCompleter { ): List { if (command.name != "bonfire") return emptyList() return when (args.size) { - 1 -> listOf("reload", "respawn", "players", "cooldown", "debug").filter { it.startsWith(args[0]) } + 1 -> listOf("reload", "respawn", "players", "debug").filter { it.startsWith(args[0]) } 2 -> when (args[0]) { "respawn" -> listOf("get", "set", "remove").filter { it.startsWith(args[1]) } "players" -> listOf((sender as? Player)?.location?.blockX.toString()) @@ -182,7 +182,7 @@ class BonfireCommands : IdofrontCommandExecutor(), TabCompleter { 3 -> when (args[0]) { "players" -> listOf((sender as? Player)?.location?.blockY.toString()) - "respawn", "cooldown" -> Bukkit.getOnlinePlayers().map { it.name }.filter { it.startsWith(args[2]) } + "respawn" -> Bukkit.getOnlinePlayers().map { it.name }.filter { it.startsWith(args[2]) } else -> emptyList() }