Class OwnerChangingRoleEventArgs
Contains all information of a CustomItem before a Player changes roles.
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.CustomItems.API.EventArgs
Assembly: Exiled.CustomItems.dll
Syntax
public class OwnerChangingRoleEventArgs : ChangingRoleEventArgs, IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceOwnerChangingRoleEventArgs(ItemBase, Player, RoleTypeId, Boolean, RoleChangeReason)
Initializes a new instance of the OwnerChangingRoleEventArgs class.
Declaration
public OwnerChangingRoleEventArgs(ItemBase item, Player player, RoleTypeId newRole, bool shouldPreserveInventory, RoleChangeReason reason)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ItemBase | item | |
Player | player | |
PlayerRoles.RoleTypeId | newRole | |
System.Boolean | shouldPreserveInventory | |
PlayerRoles.RoleChangeReason | reason |
OwnerChangingRoleEventArgs(ItemBase, ChangingRoleEventArgs)
Initializes a new instance of the OwnerChangingRoleEventArgs class.
Declaration
public OwnerChangingRoleEventArgs(ItemBase item, ChangingRoleEventArgs ev)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ItemBase | item | |
ChangingRoleEventArgs | ev | The ChangingRoleEventArgs instance. |
Properties
| Improve this Doc View SourceItem
Gets the Item as a CustomItem in the player's inventory.
Declaration
public ItemBase Item { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.ItemBase |