diff options
author | Dico Karssiens <dico.karssiens@gmail.com> | 2018-11-11 14:06:45 +0000 |
---|---|---|
committer | Dico Karssiens <dico.karssiens@gmail.com> | 2018-11-11 14:06:45 +0000 |
commit | 0f196f59c6a4cb76ab8409da62ff1f35505f94a8 (patch) | |
tree | 4b612eb874fc3b7aebe88430a28f1bfc7272c9a6 /src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt | |
parent | e55c595e54116961798cec03f6404d0c8d986e6d (diff) |
Changes I made before breaking my local repository. Hoping this works.dev
Diffstat (limited to 'src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt')
-rw-r--r-- | src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt b/src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt index b616f77..52f1104 100644 --- a/src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt +++ b/src/main/kotlin/io/dico/parcels2/command/ParcelsChatHandler.kt @@ -1,24 +1,24 @@ -package io.dico.parcels2.command - -import io.dico.dicore.Formatting -import io.dico.dicore.command.EMessageType -import io.dico.dicore.command.ExecutionContext -import io.dico.dicore.command.chat.AbstractChatHandler -import io.dico.parcels2.util.ext.plus - -class ParcelsChatHandler : AbstractChatHandler() { - - override fun getMessagePrefixForType(type: EMessageType?): String { - return Formatting.RED + "[Parcels] " - } - - override fun createMessage(context: ExecutionContext, type: EMessageType, message: String?): String? { - if (message.isNullOrEmpty()) return null - var result = getChatFormatForType(type) + message - if (context.address.mainKey != "info") { - result = getMessagePrefixForType(type) + result - } - return result - } - +package io.dico.parcels2.command
+
+import io.dico.dicore.Formatting
+import io.dico.dicore.command.EMessageType
+import io.dico.dicore.command.ExecutionContext
+import io.dico.dicore.command.chat.AbstractChatHandler
+import io.dico.parcels2.util.ext.plus
+
+class ParcelsChatHandler : AbstractChatHandler() {
+
+ override fun getMessagePrefixForType(type: EMessageType?): String {
+ return Formatting.RED + "[Parcels] "
+ }
+
+ override fun createMessage(context: ExecutionContext, type: EMessageType, message: String?): String? {
+ if (message.isNullOrEmpty()) return null
+ var result = getChatFormatForType(type) + message
+ if (context.address.mainKey != "info") {
+ result = getMessagePrefixForType(type) + result
+ }
+ return result
+ }
+
}
\ No newline at end of file |