Class ChangingGroupEventArgs
Contains all information before a player's user group changes.
Inheritance
System.Object
ChangingGroupEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class ChangingGroupEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingGroupEventArgs(Player, UserGroup, Boolean)
Initializes a new instance of the ChangingGroupEventArgs class.
Declaration
public ChangingGroupEventArgs(Player player, UserGroup newGroup, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
UserGroup | newGroup | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the player can change groups.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NewGroup
Gets or sets the player's new group.
Declaration
public UserGroup NewGroup { get; set; }
Property Value
Type | Description |
---|---|
UserGroup |
Player
Gets the player who's changing his group.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |