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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player whose role is changing. |
$evOldNickname | text value | Gets the old nickname of the player. Remarks: Null means they did not have a custom display-name before. |
$evNewNickname | text value | Gets or sets the new nickname of the player. Remarks: Null means their regular name will be used. |
$evIsAllowed | bool value | Whether the event is allowed to run. |