diff options
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/commands/TestCommand.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/commands/TestCommand.kt b/src/main/kotlin/com/dulkirfabric/commands/TestCommand.kt new file mode 100644 index 0000000..e9c30c7 --- /dev/null +++ b/src/main/kotlin/com/dulkirfabric/commands/TestCommand.kt @@ -0,0 +1,16 @@ +package com.dulkirfabric.commands + +import com.dulkirfabric.util.ScoreBoardUtils +import com.mojang.brigadier.CommandDispatcher +import com.mojang.brigadier.builder.LiteralArgumentBuilder +import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource +import net.minecraft.command.CommandRegistryAccess + +object TestCommand { + fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) { + dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("linetest").executes { + val lines = ScoreBoardUtils.getLines() + return@executes 0 + }) + } +}
\ No newline at end of file |