Skip to main content

ChangedNickname

Gets called when a players' nickname has changed.

Start a script section

!-- OnEvent ChangedNickname
-- require @evPlayer $evOldNickname $evNewNickname

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerChangedNicknameEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player whose nickname has changed.
$evOldNicknametext valueGets the old nickname of the player.
Remarks: Null means they did not have a custom display-name before.
$evNewNicknametext valueGets the new nickname of the player.
Remarks: Null means their regular name will be used.