Table of Contents

Class UsedItemEventArgs

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

Contains all information after a player used an item.

public class UsedItemEventArgs : IUsableEvent, IItemEvent, IPlayerEvent, IExiledEvent
Inheritance
UsedItemEventArgs
Implements
Inherited Members
Extension Methods

Constructors

UsedItemEventArgs(ReferenceHub, UsableItem, bool)

Initializes a new instance of the UsedItemEventArgs class.

public UsedItemEventArgs(ReferenceHub player, UsableItem item, bool causedByHolstering)

Parameters

player ReferenceHub
item UsableItem

causedByHolstering bool

Properties

CausedByHolstering

Gets a value indicating whether this event was triggered by a player switching items (true) or by waiting after using the item (false).

public bool CausedByHolstering { get; }

Property Value

bool

Remarks

Use this value if you wish to keep the bug where you could switch items quickly to skip this event.

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

Player

Gets the player who used the item.

public Player Player { get; }

Property Value

Player

Usable

Gets the item that the player used.

public Usable Usable { get; }

Property Value

Usable