diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/commands/SimpleCommand.kt | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/SimpleCommand.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/SimpleCommand.kt index 59c6044c3..764f1243d 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/SimpleCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/SimpleCommand.kt @@ -29,17 +29,11 @@ class SimpleCommand : CommandBase { fun tabComplete(sender: ICommandSender?, args: Array<String>?, pos: BlockPos?): List<String> } - override fun canCommandSenderUseCommand(sender: ICommandSender): Boolean { - return true - } + override fun canCommandSenderUseCommand(sender: ICommandSender) = true - override fun getCommandName(): String { - return commandName - } + override fun getCommandName() = commandName - override fun getCommandUsage(sender: ICommandSender): String { - return "/$commandName" - } + override fun getCommandUsage(sender: ICommandSender) = "/$commandName" override fun processCommand(sender: ICommandSender, args: Array<String>) { try { @@ -49,7 +43,6 @@ class SimpleCommand : CommandBase { } } - override fun addTabCompletionOptions(sender: ICommandSender, args: Array<String>, pos: BlockPos): List<String>? { - return if (tabRunnable != null) tabRunnable!!.tabComplete(sender, args, pos) else null - } + override fun addTabCompletionOptions(sender: ICommandSender, args: Array<String>, pos: BlockPos) = + if (tabRunnable != null) tabRunnable!!.tabComplete(sender, args, pos) else null }
\ No newline at end of file |