Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player whose group is changing.
*evGroupreference to UserGroup objectGets or sets the new group.
$evIsAllowedbool valueWhether the event is allowed to run.