From f8322cd21cde68a72b05efbad3a05b8e67c0bdd0 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 26 Mar 2026 23:15:33 -0400 Subject: initial --- core/src/command/Debug.kt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 core/src/command/Debug.kt (limited to 'core/src/command/Debug.kt') diff --git a/core/src/command/Debug.kt b/core/src/command/Debug.kt new file mode 100644 index 0000000..d000d60 --- /dev/null +++ b/core/src/command/Debug.kt @@ -0,0 +1,24 @@ +package cat.freya.khs.command + +import cat.freya.khs.Khs +import cat.freya.khs.command.util.Command +import cat.freya.khs.inv.createDebugMenu +import cat.freya.khs.player.Player +import cat.freya.khs.runChecks + +class KhsDebug : Command { + override val label = "debug" + override val usage = listOf() + override val description = "Mess with/debug the current game" + + override fun execute(plugin: Khs, player: Player, args: List) { + runChecks(plugin, player) { gameMapExists() } + + val inv = createDebugMenu(plugin) ?: return + player.showInventory(inv) + } + + override fun autoComplete(plugin: Khs, parameter: String, typed: String): List { + return listOf() + } +} -- cgit v1.2.3-freya