Update kits
This commit is contained in:
@@ -14,7 +14,7 @@ import org.bukkit.event.player.PlayerMoveEvent
|
||||
abstract class AbstractKit(
|
||||
val id: String,
|
||||
val displayName: Component,
|
||||
val description: List<String>,
|
||||
val description: List<Component>,
|
||||
val icon: Material,
|
||||
val playStyle: PlayStyle,
|
||||
protected val plugin: SpeedHG,
|
||||
|
||||
@@ -29,7 +29,7 @@ class KitManager(
|
||||
kitClass = AnchorKit::class.java,
|
||||
id = "anchor",
|
||||
displayName = plugin.chatFormatter.format( "kits.anchor.displayName" ),
|
||||
description = emptyList(),
|
||||
description = plugin.chatFormatter.formatList( "kits.anchor.lore" ),
|
||||
icon = Material.ANVIL
|
||||
)
|
||||
|
||||
@@ -37,7 +37,7 @@ class KitManager(
|
||||
kitClass = ArmorerKit::class.java,
|
||||
id = "armorer",
|
||||
displayName = plugin.chatFormatter.format( "kits.armorer.displayName" ),
|
||||
description = emptyList(),
|
||||
description = plugin.chatFormatter.formatList( "kits.armorer.lore" ),
|
||||
icon = Material.IRON_CHESTPLATE
|
||||
)
|
||||
|
||||
@@ -45,7 +45,7 @@ class KitManager(
|
||||
kitClass = BlackPantherKit::class.java,
|
||||
id = "blackpanther",
|
||||
displayName = plugin.chatFormatter.format( "kits.blackpanther.displayName" ),
|
||||
description = emptyList(),
|
||||
description = plugin.chatFormatter.formatList( "kits.blackpanther.lore" ),
|
||||
icon = Material.DRAGON_EGG
|
||||
)
|
||||
|
||||
@@ -53,7 +53,7 @@ class KitManager(
|
||||
kitClass = BlitzcrankKit::class.java,
|
||||
id = "blitzcrank",
|
||||
displayName = plugin.chatFormatter.format( "kits.blitzcrank.displayName" ),
|
||||
description = emptyList(),
|
||||
description = plugin.chatFormatter.formatList( "kits.blitzcrank.lore" ),
|
||||
icon = Material.FISHING_ROD
|
||||
)
|
||||
}
|
||||
@@ -62,7 +62,7 @@ class KitManager(
|
||||
kitClass: Class<out AbstractKit>,
|
||||
id: String,
|
||||
displayName: Component,
|
||||
description: List<String>,
|
||||
description: List<Component>,
|
||||
icon: Material
|
||||
) {
|
||||
val constructor = kitClass.getDeclaredConstructor(
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentHashMap
|
||||
class AnchorKit(
|
||||
id: String,
|
||||
displayName: Component,
|
||||
description: List<String>,
|
||||
description: List<Component>,
|
||||
icon: Material,
|
||||
playStyle: PlayStyle,
|
||||
plugin: SpeedHG,
|
||||
|
||||
@@ -20,7 +20,7 @@ import kotlin.math.roundToInt
|
||||
class ArmorerKit(
|
||||
id: String,
|
||||
displayName: Component,
|
||||
description: List<String>,
|
||||
description: List<Component>,
|
||||
icon: Material,
|
||||
playStyle: PlayStyle,
|
||||
plugin: SpeedHG,
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.bukkit.metadata.FixedMetadataValue
|
||||
class BlackPantherKit(
|
||||
id: String,
|
||||
displayName: Component,
|
||||
description: List<String>,
|
||||
description: List<Component>,
|
||||
icon: Material,
|
||||
playStyle: PlayStyle,
|
||||
plugin: SpeedHG,
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.bukkit.util.Vector
|
||||
class BlitzcrankKit(
|
||||
id: String,
|
||||
displayName: Component,
|
||||
description: List<String>,
|
||||
description: List<Component>,
|
||||
icon: Material,
|
||||
playStyle: PlayStyle,
|
||||
plugin: SpeedHG,
|
||||
|
||||
@@ -8,7 +8,7 @@ object TimeUtils {
|
||||
|
||||
fun scoreboardTimeFromState(): String
|
||||
{
|
||||
val currentTime = plugin.gameManager.getCurrentState()?.remainingSeconds
|
||||
val currentTime = plugin.gameManager.getCurrentState()?.getRemainingSeconds()
|
||||
?: throw IllegalArgumentException("Remaining seconds for state is null!")
|
||||
return scoreboardTime( currentTime )
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user