Table of Contents

Class UsingItemEventArgs

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

Contains all information before a player uses an item.

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

Constructors

UsingItemEventArgs(Player, UsableItem, float)

Initializes a new instance of the UsingItemEventArgs class.

public UsingItemEventArgs(Player player, UsableItem item, float cooldown)

Parameters

player Player

The player who's going to use the item.

item UsableItem

cooldown float

Properties

Cooldown

Gets or sets the item cooldown.

public float Cooldown { get; set; }

Property Value

float

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