Update invis time; fix perk momentum
Invincibility time has been increased to 120 seconds; MomentumPerk now doesn't cancel speed in invis
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package club.mcscrims.speedhg.perk.impl
|
package club.mcscrims.speedhg.perk.impl
|
||||||
|
|
||||||
import club.mcscrims.speedhg.SpeedHG
|
import club.mcscrims.speedhg.SpeedHG
|
||||||
|
import club.mcscrims.speedhg.game.GameState
|
||||||
import club.mcscrims.speedhg.perk.Perk
|
import club.mcscrims.speedhg.perk.Perk
|
||||||
import club.mcscrims.speedhg.util.trans
|
import club.mcscrims.speedhg.util.trans
|
||||||
import net.kyori.adventure.text.Component
|
import net.kyori.adventure.text.Component
|
||||||
@@ -77,6 +78,7 @@ class MomentumPerk : Perk() {
|
|||||||
val task = object : BukkitRunnable() {
|
val task = object : BukkitRunnable() {
|
||||||
override fun run() {
|
override fun run() {
|
||||||
if ( !player.isOnline ) { cancel(); return }
|
if ( !player.isOnline ) { cancel(); return }
|
||||||
|
if ( plugin.gameManager.currentState == GameState.INVINCIBILITY ) return
|
||||||
|
|
||||||
if ( player.isSprinting ) {
|
if ( player.isSprinting ) {
|
||||||
val ticks = ( sprintTicks[ player.uniqueId ] ?: 0 ) + 1
|
val ticks = ( sprintTicks[ player.uniqueId ] ?: 0 ) + 1
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ game:
|
|||||||
beta: true
|
beta: true
|
||||||
min-players: 2
|
min-players: 2
|
||||||
lobby-time: 60
|
lobby-time: 60
|
||||||
invincibility-time: 60
|
invincibility-time: 120
|
||||||
border-start: 600.0
|
border-start: 600.0
|
||||||
border-end: 100.0
|
border-end: 100.0
|
||||||
border-shrink-time: 900 # 10 Minuten
|
border-shrink-time: 900 # 10 Minuten
|
||||||
|
|||||||
Reference in New Issue
Block a user