Class UsingItemCompletedEventArgs
Contains all information before a player uses an item.
Inheritance
System.Object
UsingItemCompletedEventArgs
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 UsingItemCompletedEventArgs : IPlayerEvent, IDeniableEvent, IUsableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUsingItemCompletedEventArgs(Player, UsableItem)
Initializes a new instance of the UsingItemCompletedEventArgs class.
Declaration
public UsingItemCompletedEventArgs(Player player, UsableItem item)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player who's going to use the item. |
InventorySystem.Items.Usables.UsableItem | item |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the player can use the 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 using the item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Usable
Gets the item that the player using.
Declaration
public Usable Usable { get; }
Property Value
Type | Description |
---|---|
Usable |