diff --git a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/ChatListener.kt b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/ChatListener.kt index d3373b7..b2e0563 100644 --- a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/ChatListener.kt +++ b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/ChatListener.kt @@ -62,7 +62,7 @@ class ChatListener : Listener { val channelData = ogChannelData.withChannelVerified() val channelId = channelData.channelId val channel = channelData.channel ?: return - val baseMessage = message().children().last() + val baseMessage = message().children().lastOrNull() ?: message() if (viewers().isNotEmpty()) viewers().clear() viewers() += channel.getAudience(player) diff --git a/gradle.properties b/gradle.properties index 9c217c1..3cc3547 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=com.mineinabyss version=0.8 -idofrontVersion=0.24-dev +idofrontVersion=0.24.0 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 39718aa..8d54309 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,8 +1,8 @@ [versions] -geary = "0.30-dev" +geary = "0.30.1" velocity = "3.3.0-SNAPSHOT" discordsrv = "1.27.0" -placeholderapi = "2.11.5" +placeholderapi = "2.11.6" imageloader = "1.1-SNAPSHOT" [libraries]