Update LobbyAnnouncer.kt
This commit is contained in:
@@ -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 )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user