Update GamePhases.kt

This commit is contained in:
bluefireoly
2020-09-14 18:51:59 +02:00
parent ebe2185607
commit 853934549f

View File

@@ -40,7 +40,7 @@ class GamePhase(
start?.invoke() start?.invoke()
kSpigot.task( kSpigot.task(
period = 20, period = 20,
howOften = length / 20, howOften = (length / 20) + 20,
endCallback = { endCallback = {
end?.invoke() end?.invoke()
@@ -52,7 +52,7 @@ class GamePhase(
) { ) {
if (counterMessage != null) { if (counterMessage != null) {
val currentCounter = it.counterDownToOne val currentCounter = it.counterDownToZero
if (currentCounter?.isCounterValue == true) if (currentCounter?.isCounterValue == true)
broadcast(counterMessage.invoke(currentCounter)) broadcast(counterMessage.invoke(currentCounter))
} }