PlayerData

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.

Parameters

nickName

the players nickname or null if they don't have one

balance

the money the user has

chatColor

the saved chatcolor of the player

chatPingsEnabled

true if the player gets chat pings, false otherwise

homes

the homes they have. the key is the home name, the value is the location.

kitClaimTimes

the map of kitname and system time claimed

Constructors

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

Properties

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