Skip to content

Commit

Permalink
fix: papi nullpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jan 17, 2024
1 parent 30ea9e5 commit c10f862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fun getDefaultChat() =

fun getAllChannelNames() = chatty.config.channels.keys.toList()

fun translatePlaceholders(player: Player?, message: String) = PlaceholderAPI.setPlaceholders(player, message)
fun translatePlaceholders(player: Player?, message: String) = if (chatty.isPlaceholderApiLoaded) PlaceholderAPI.setPlaceholders(player, message) else message

fun String.fixSerializedTags(): String = this.replaceAll("\\\\(?!u)(?!\")(?!:)", "")

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.mineinabyss
version=0.7
idofrontVersion=0.20.14
velocityVersion=3.2.0
idofrontVersion=0.21.2
velocityVersion=3.3.0
coroutinesVersion=1.6.4

0 comments on commit c10f862

Please sign in to comment.