Class ChangingItemEventArgs
Contains all information before a player's held item changes.
Inheritance
System.Object
ChangingItemEventArgs
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 ChangingItemEventArgs : IPlayerEvent, IDeniableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingItemEventArgs(Player, ItemBase)
Initializes a new instance of the ChangingItemEventArgs class.
Declaration
public ChangingItemEventArgs(Player player, ItemBase newItem)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.ItemBase | newItem |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether the event is allowed to continue.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Gets or sets the new item.
Declaration
public Item Item { get; set; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who's changing the item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |