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, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("linetest").executes { val lines = ScoreBoardUtils.getLines() return@executes 0 }) } }