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