Skip to main content

ChangingNickname

Gets called when a players' nickname is changing.

Start a script section

!-- OnEvent ChangingNickname
-- require @evPlayer $evOldNickname $evNewNickname $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerChangingNicknameEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player whose role is changing.
$evOldNicknametext valueGets the old nickname of the player.
Remarks: Null means they did not have a custom display-name before.
$evNewNicknametext valueGets or sets the new nickname of the player.
Remarks: Null means their regular name will be used.
$evIsAllowedbool valueWhether the event is allowed to run.