Warning

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

Emitted when a player warning occurred.

Constructors

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

Properties

Link copied to clipboard
open override val code: PlayerWarningCode

The warning code used to identify the warning.

Link copied to clipboard
open override val message: String

The warning message to explain the reason for the warning.