Update LobbyAnnouncer.kt

This commit is contained in:
TDSTOS
2026-04-12 11:44:19 +02:00
parent aad1f0c9f9
commit 7005546e21

View File

@@ -17,7 +17,7 @@ class LobbyAnnouncer(
private var task: BukkitTask? = null private var task: BukkitTask? = null
companion object { companion object {
private const val INTERVAL_TICKS = 30 * 20L private const val INTERVAL_TICKS = 45 * 20L
} }
/** /**
@@ -38,7 +38,9 @@ class LobbyAnnouncer(
"<gray>Please share your ideas and suggestions in the <blue>#ideas</blue> forum on our Discord!</gray>\n" "<gray>Please share your ideas and suggestions in the <blue>#ideas</blue> forum on our Discord!</gray>\n"
) )
Bukkit.broadcast( message ) Bukkit.getOnlinePlayers().forEach { player ->
player.sendMessage( message )
}
}, INTERVAL_TICKS, INTERVAL_TICKS ) }, INTERVAL_TICKS, INTERVAL_TICKS )
} }