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