ModuCoreNicknameEvent

class ModuCoreNicknameEvent(    val oldName: Component,     val newName: String,     val player: Player,     val executor: CommandSender?) : ModuCoreEvent

Sent when a player nicknames.

Parameters

oldName

the old name or null if they didn't have a nick

newName

the new name

player

the player who nicked

executor

the player or command sender who ran the command to nick this player

Constructors

Link copied to clipboard
fun ModuCoreNicknameEvent(    oldName: Component,     newName: String,     player: Player,     executor: CommandSender?)

Functions

Link copied to clipboard
open fun callEvent(): Boolean
Link copied to clipboard
@NotNull
open fun getEventName(): @NotNull String
Link copied to clipboard
open override fun getHandlers(): HandlerList
Link copied to clipboard
fun isAsynchronous(): Boolean

Properties

Link copied to clipboard
val executor: CommandSender?
Link copied to clipboard
val newName: String
Link copied to clipboard
val oldName: Component
Link copied to clipboard
val player: Player