Table of Contents

Class ChangingItemEventArgs

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

Contains all information before a player's held item changes.

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

Constructors

ChangingItemEventArgs(Player, ItemBase)

Initializes a new instance of the ChangingItemEventArgs class.

public ChangingItemEventArgs(Player player, ItemBase newItem)

Parameters

player Player
newItem ItemBase

Properties

IsAllowed

Gets or sets a value indicating whether the event is allowed to continue.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets or sets the new item.

public Item Item { get; set; }

Property Value

Item

Player

Gets the player who's changing the item.

public Player Player { get; }

Property Value

Player