Warning

data class Warning(code: PlayerWarningCode, message: String) : PlayerEvent, WarningEvent

Emitted when a player warning occurred.

Constructors

Warning
Link copied to clipboard
fun Warning(code: PlayerWarningCode, message: String)

Properties

code
Link copied to clipboard
open override val code: PlayerWarningCode
The warning code used to identify the warning.
message
Link copied to clipboard
open override val message: String
The warning message to explain the reason for the warning.

Inherited properties

timestamp
Link copied to clipboard
var timestamp: Long
The time at which the event was emitted.