From 445618ffaf04470eca10d49d49c6506be931b516 Mon Sep 17 00:00:00 2001 From: TDSTOS Date: Mon, 13 Apr 2026 23:43:45 +0200 Subject: [PATCH] Update invis time; fix perk momentum Invincibility time has been increased to 120 seconds; MomentumPerk now doesn't cancel speed in invis --- src/main/kotlin/club/mcscrims/speedhg/perk/impl/MomentumPerk.kt | 2 ++ src/main/resources/config.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/club/mcscrims/speedhg/perk/impl/MomentumPerk.kt b/src/main/kotlin/club/mcscrims/speedhg/perk/impl/MomentumPerk.kt index b724392..957347b 100644 --- a/src/main/kotlin/club/mcscrims/speedhg/perk/impl/MomentumPerk.kt +++ b/src/main/kotlin/club/mcscrims/speedhg/perk/impl/MomentumPerk.kt @@ -1,6 +1,7 @@ package club.mcscrims.speedhg.perk.impl import club.mcscrims.speedhg.SpeedHG +import club.mcscrims.speedhg.game.GameState import club.mcscrims.speedhg.perk.Perk import club.mcscrims.speedhg.util.trans import net.kyori.adventure.text.Component @@ -77,6 +78,7 @@ class MomentumPerk : Perk() { val task = object : BukkitRunnable() { override fun run() { if ( !player.isOnline ) { cancel(); return } + if ( plugin.gameManager.currentState == GameState.INVINCIBILITY ) return if ( player.isSprinting ) { val ticks = ( sprintTicks[ player.uniqueId ] ?: 0 ) + 1 diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 248f73f..9796eb2 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -7,7 +7,7 @@ game: beta: true min-players: 2 lobby-time: 60 - invincibility-time: 60 + invincibility-time: 120 border-start: 600.0 border-end: 100.0 border-shrink-time: 900 # 10 Minuten