GroupChanging
Gets called when the player's group is changing.
Start a script section
!-- OnEvent GroupChanging
-- require @evPlayer *evGroup $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerGroupChangingEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player whose group is changing. |
*evGroup | reference to UserGroup object | Gets or sets the new group. |
$evIsAllowed | bool value | Whether the event is allowed to run. |