Update GamePhases.kt

This commit is contained in:
bluefireoly
2020-10-12 17:26:22 +02:00
parent a26a591668
commit dd905f22da

View File

@@ -3,7 +3,7 @@
package net.axay.kspigot.game package net.axay.kspigot.game
import net.axay.kspigot.extensions.broadcast import net.axay.kspigot.extensions.broadcast
import net.axay.kspigot.main.KSpigotMainInstance import net.axay.kspigot.runnables.task
import net.md_5.bungee.api.ChatColor import net.md_5.bungee.api.ChatColor
class GamePhaseSystem(vararg gamePhases: GamePhase) { class GamePhaseSystem(vararg gamePhases: GamePhase) {
@@ -37,7 +37,7 @@ class GamePhase(
) { ) {
fun startIt(phaseQueue: MutableList<GamePhase>) { fun startIt(phaseQueue: MutableList<GamePhase>) {
start?.invoke() start?.invoke()
KSpigotMainInstance.task( task(
period = 20, period = 20,
howOften = (length / 20) + 1, howOften = (length / 20) + 1,
endCallback = { endCallback = {