Table of Contents

Class UsingItemCompletedEventArgs

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

Contains all information before a player uses an item.

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

Constructors

UsingItemCompletedEventArgs(Player, UsableItem)

Initializes a new instance of the UsingItemCompletedEventArgs class.

public UsingItemCompletedEventArgs(Player player, UsableItem item)

Parameters

player Player

The player who's going to use the item.

item UsableItem

Properties

IsAllowed

Gets or sets a value indicating whether the player can use the item.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

Player

Gets the player who using the item.

public Player Player { get; }

Property Value

Player

Usable

Gets the item that the player using.

public Usable Usable { get; }

Property Value

Usable