Skip to content

Commit

Permalink
refactor: use geary cooldown-system
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Feb 1, 2024
1 parent 60ad93c commit e16819e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/mineinabyss/bonfire/BonfireCommands.kt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class BonfireCommands : IdofrontCommandExecutor(), TabCompleter {
): List<String> {
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())
Expand All @@ -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()
}

Expand Down

0 comments on commit e16819e

Please sign in to comment.