Class CancellingItemUseEventArgs
Contains all information before a player cancels usage of an item.
Inheritance
System.Object
CancellingItemUseEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class CancellingItemUseEventArgs : IPlayerEvent, IDeniableEvent, IUsableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceCancellingItemUseEventArgs(Player, UsableItem)
Initializes a new instance of the CancellingItemUseEventArgs class.
Declaration
public CancellingItemUseEventArgs(Player player, UsableItem item)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player who's stopping the use of an item. |
InventorySystem.Items.Usables.UsableItem | item |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the player can cancelling the use of item.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who is cancelling the item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Usable
Gets the item that the player cancelling.
Declaration
public Usable Usable { get; }
Property Value
Type | Description |
---|---|
Usable |