From 4b765d176b23df052ebdad4b45c480ffe904e4de Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 1 Nov 2022 13:42:42 +0100 Subject: kotlin reformat --- src/main/kotlin/dulkirmod/command/JoinDungeonCommand.kt | 10 +++++----- src/main/kotlin/dulkirmod/command/LeapNameCommand.kt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/kotlin/dulkirmod/command') diff --git a/src/main/kotlin/dulkirmod/command/JoinDungeonCommand.kt b/src/main/kotlin/dulkirmod/command/JoinDungeonCommand.kt index 9765a47..25b7c7c 100644 --- a/src/main/kotlin/dulkirmod/command/JoinDungeonCommand.kt +++ b/src/main/kotlin/dulkirmod/command/JoinDungeonCommand.kt @@ -10,13 +10,12 @@ import net.minecraft.util.ChatComponentText class JoinDungeonCommand : ClientCommandBase("joindungeon") { @Throws(CommandException::class) override fun processCommand(sender: ICommandSender, args: Array) { - var arguments = args.contentToString().replace("[", "").replace("]", "").replace(",","") + var arguments = args.contentToString().replace("[", "").replace("]", "").replace(",", "") var type = "" var num = "" if (args[0] == "master_catacombs") { type = "M" - } - else if (args[0] == "catacombs") { + } else if (args[0] == "catacombs") { type = "F" } @@ -25,9 +24,10 @@ class JoinDungeonCommand : ClientCommandBase("joindungeon") { if (args[1].toInt() in 1..7) { num = args[1] } - } catch (e: NumberFormatException) { } + } catch (e: NumberFormatException) { + } - if(Config.dungeonCommandConfirm) { + if (Config.dungeonCommandConfirm) { mc.thePlayer.addChatMessage( ChatComponentText("${DulkirMod.CHAT_PREFIX} §6Running command: $type$num") ) diff --git a/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt b/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt index 3d7b4f2..cacaaea 100644 --- a/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt +++ b/src/main/kotlin/dulkirmod/command/LeapNameCommand.kt @@ -8,7 +8,7 @@ import net.minecraft.util.ChatComponentText class LeapNameCommand : ClientCommandBase("hl") { @Throws(CommandException::class) - override fun processCommand(sender: ICommandSender, args: Array) { + override fun processCommand(sender: ICommandSender, args: Array) { if (args.isEmpty()) { DulkirMod.mc.thePlayer.addChatMessage( ChatComponentText("${DulkirMod.CHAT_PREFIX} §6Please give a username argument (case sensitive) for who you want to be highlighted.") -- cgit