Class UsingItemEventArgs
Contains all information before a player uses an item.
Inheritance
System.Object
UsingItemEventArgs
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 UsingItemEventArgs : IPlayerEvent, IDeniableEvent, IUsableEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUsingItemEventArgs(Player, UsableItem, Single)
Initializes a new instance of the UsingItemEventArgs class.
Declaration
public UsingItemEventArgs(Player player, UsableItem item, float cooldown)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player who's going to use the item. |
InventorySystem.Items.Usables.UsableItem | item | |
System.Single | cooldown |
Properties
| Improve this Doc View SourceCooldown
Gets or sets the item cooldown.
Declaration
public float Cooldown { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
IsAllowed
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 |