Table of Contents

Class CancellingItemUseEventArgs

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

Contains all information before a player cancels usage of an item.

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

Constructors

CancellingItemUseEventArgs(Player, UsableItem)

Initializes a new instance of the CancellingItemUseEventArgs class.

public CancellingItemUseEventArgs(Player player, UsableItem item)

Parameters

player Player

The player who's stopping the use of an item.

item UsableItem

Properties

IsAllowed

Gets or sets a value indicating whether the player can cancelling the use of 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 is cancelling the item.

public Player Player { get; }

Property Value

Player

Usable

Gets the item that the player cancelling.

public Usable Usable { get; }

Property Value

Usable