Package dev.jaims.moducore.api.data

Types

Link copied to clipboard
data class Kit(    val name: String,     var cooldown: Int,     var items: List<ItemStack>,     var consoleCommands: List<String>,     var playerCommands: List<String>,     val kitInfo: KitInfo = KitInfo(name, "Your Custom Kit Description! Edit in kits.yml", "DIRT", false))
Link copied to clipboard
data class KitInfo(    val displayName: String,     val description: String,     val displayItem: String,     val glow: Boolean)
Link copied to clipboard
data class LocationHolder(    var worldName: String = "world",     var x: Double = 0.0,     var y: Double = 0.0,     var z: Double = 0.0,     var yaw: Float = 0.0f,     var pitch: Float = 0.0f)

A Location Wrapper for Config Files

Link copied to clipboard
data class PlayerData(    var nickName: String? = null,     var balance: Double = 0.0,     var chatColor: String? = null,     var chatPingsEnabled: Boolean = true,     var discordID: Long? = null,     val homes: MutableMap<String, LocationHolder> = mutableMapOf(),     val kitClaimTimes: MutableMap<String, Long> = mutableMapOf())

A data class that hold the relevant player data for each player.

Functions

Link copied to clipboard
fun Kit.give(player: Player): Kit