From 7005546e2140be084b6e4ef0ab329695d9e46497 Mon Sep 17 00:00:00 2001 From: TDSTOS Date: Sun, 12 Apr 2026 11:44:19 +0200 Subject: [PATCH] Update LobbyAnnouncer.kt --- .../club/mcscrims/speedhg/game/modules/LobbyAnnouncer.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/club/mcscrims/speedhg/game/modules/LobbyAnnouncer.kt b/src/main/kotlin/club/mcscrims/speedhg/game/modules/LobbyAnnouncer.kt index fcb6a62..831e994 100644 --- a/src/main/kotlin/club/mcscrims/speedhg/game/modules/LobbyAnnouncer.kt +++ b/src/main/kotlin/club/mcscrims/speedhg/game/modules/LobbyAnnouncer.kt @@ -17,7 +17,7 @@ class LobbyAnnouncer( private var task: BukkitTask? = null companion object { - private const val INTERVAL_TICKS = 30 * 20L + private const val INTERVAL_TICKS = 45 * 20L } /** @@ -38,7 +38,9 @@ class LobbyAnnouncer( "Please share your ideas and suggestions in the #ideas forum on our Discord!\n" ) - Bukkit.broadcast( message ) + Bukkit.getOnlinePlayers().forEach { player -> + player.sendMessage( message ) + } }, INTERVAL_TICKS, INTERVAL_TICKS ) }