Table of Contents

Class ChangingGroupEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before a player's user group changes.

public class ChangingGroupEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
ChangingGroupEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ChangingGroupEventArgs(Player, UserGroup, bool)

Initializes a new instance of the ChangingGroupEventArgs class.

public ChangingGroupEventArgs(Player player, UserGroup newGroup, bool isAllowed = true)

Parameters

player Player
newGroup UserGroup
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the player can change groups.

public bool IsAllowed { get; set; }

Property Value

bool

NewGroup

Gets or sets the player's new group.

public UserGroup NewGroup { get; set; }

Property Value

UserGroup

Player

Gets the player who's changing his group.

public Player Player { get; }

Property Value

Player