diff --git a/Server/src/main/kotlin/discord/Discord.kt b/Server/src/main/kotlin/discord/Discord.kt index 33f980433..5f5b82136 100644 --- a/Server/src/main/kotlin/discord/Discord.kt +++ b/Server/src/main/kotlin/discord/Discord.kt @@ -45,6 +45,7 @@ object Discord { } fun postPlayerAlert(player: String, type: String) { + if (ServerConstants.DISCORD_MOD_WEBHOOK.isEmpty()) return GlobalScope.launch { val alert = encodeUserAlert(type, player) try {