Skip to content

Commit

Permalink
Changed some message colors
Browse files Browse the repository at this point in the history
  • Loading branch information
byPixelTV committed Aug 1, 2024
1 parent d496abb commit 1702684
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/de/bypixeltv/skredis/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class Main : KSpigot() {
this.server.consoleSender.sendMessage(miniMessages.deserialize("<grey>[<aqua>SkRedis</aqua>]</grey> <yellow>$message</yellow>"))
}

fun sendInfoLogs(message: String) {
this.server.consoleSender.sendMessage(miniMessages.deserialize("<grey>[<aqua>SkRedis</aqua>]</grey> <green>$message</green>"))
}

fun sendErrorLogs(message: String) {
this.server.consoleSender.sendMessage(miniMessages.deserialize("<grey>[<aqua>SkRedis</aqua>]</grey> <red>$message</red>"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RedisController(private val plugin: Main) : BinaryJedisPubSub(), Runnable
try {
jedisPool.resource.use { _ ->
isConnectionBroken.set(false)
plugin.sendLogs("Connection to Redis server has established! Success!")
plugin.sendInfoLogs("Connection to Redis server has established! Success!")
}
} catch (e: Exception) {
isConnecting.set(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class EffSendMessage : Effect() {
val message = message!!.getAll(event)
val channel = channel!!.getSingle(event)
if (message[0] == null) {
plugin.sendLogs("Message was empty. Please check your code.")
plugin.sendErrorLogs("Message was empty. Please check your code.")
return
}
if (channel == null) {
Expand Down

0 comments on commit 1702684

Please sign in to comment.