diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/command')
-rw-r--r-- | src/main/kotlin/dulkirmod/command/JoinDungeonCommand.kt | 10 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/command/LeapNameCommand.kt | 2 |
2 files changed, 6 insertions, 6 deletions
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<String>) { - 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<String>) { + override fun processCommand(sender: ICommandSender, args: Array<String>) { 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.") |