package com.dulkirfabric.commands import com.dulkirfabric.util.TextUtils 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 JoinDungeonCommands { object F1Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f1").executes { TextUtils.info("§6Attempting to join F1...") TextUtils.sendCommand("joindungeon catacombs 1") return@executes 0 }) } } object F2Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f2").executes { TextUtils.info("§6Attempting to join F2...") TextUtils.sendCommand("joindungeon catacombs 2") return@executes 0 }) } } object F3Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f3").executes { TextUtils.info("§6Attempting to join F3...") TextUtils.sendCommand("joindungeon catacombs 3") return@executes 0 }) } } object F4Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f4").executes { TextUtils.info("§6Attempting to join F4...") TextUtils.sendCommand("joindungeon catacombs 4") return@executes 0 }) } } object F5Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f5").executes { TextUtils.info("§6Attempting to join F5...") TextUtils.sendCommand("joindungeon catacombs 5") return@executes 0 }) } } object F6Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f6").executes { TextUtils.info("§6Attempting to join F6...") TextUtils.sendCommand("joindungeon catacombs 6") return@executes 0 }) } } object F7Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("f7").executes { TextUtils.info("§6Attempting to join F7...") TextUtils.sendCommand("joindungeon catacombs 7") return@executes 0 }) } } object M1Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m1").executes { TextUtils.info("§6Attempting to join M1...") TextUtils.sendCommand("joindungeon master_catacombs 1") return@executes 0 }) } } object M2Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m2").executes { TextUtils.info("§6Attempting to join M2...") TextUtils.sendCommand("joindungeon master_catacombs 2") return@executes 0 }) } } object M3Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m3").executes { TextUtils.info("§6Attempting to join M3...") TextUtils.sendCommand("joindungeon master_catacombs 3") return@executes 0 }) } } object M4Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m4").executes { TextUtils.info("§6Attempting to join M4...") TextUtils.sendCommand("joindungeon master_catacombs 4") return@executes 0 }) } } object M5Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m5").executes { TextUtils.info("§6Attempting to join M5...") TextUtils.sendCommand("joindungeon master_catacombs 5") return@executes 0 }) } } object M6Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m6").executes { TextUtils.info("§6Attempting to join M6...") TextUtils.sendCommand("joindungeon master_catacombs 6") return@executes 0 }) } } object M7Command { fun register(dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess) { dispatcher.register(LiteralArgumentBuilder.literal("m7").executes { TextUtils.info("§6Attempting to join M7...") TextUtils.sendCommand("joindungeon master_catacombs 7") return@executes 0 }) } } }