diff --git a/silk-testmod/src/main/kotlin/net/silkmc/silk/test/commands/SideboardCommand.kt b/silk-testmod/src/main/kotlin/net/silkmc/silk/test/commands/SideboardCommand.kt index 4b1793e8..91d054cd 100644 --- a/silk-testmod/src/main/kotlin/net/silkmc/silk/test/commands/SideboardCommand.kt +++ b/silk-testmod/src/main/kotlin/net/silkmc/silk/test/commands/SideboardCommand.kt @@ -1,15 +1,20 @@ package net.silkmc.silk.test.commands import net.silkmc.silk.core.text.literalText -import net.silkmc.silk.game.sideboard.showSideboard import net.silkmc.silk.game.sideboard.sideboard val sideboardCommand = testCommand("sideboard") { - argument("example") { example -> + argument("example") { example -> suggestList { sideboardExamples.keys } - runs { - val sideboard = sideboardExamples[example()] ?: return@runs - source.playerOrException.showSideboard(sideboard) + literal("display") { + runs { + sideboardExamples[example()]?.displayToPlayer(source.playerOrException) + } + } + literal("hide") { + runs { + sideboardExamples[example()]?.hideFromPlayer(source.playerOrException) + } } } }