Class ChangingGroupEventArgs
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
Properties
IsAllowed
Gets or sets a value indicating whether the player can change groups.
public bool IsAllowed { get; set; }
Property Value
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; }