Search Results for

    Show / Hide Table of Contents

    Class UsingItemEventArgs

    Contains all information before a player uses an item.

    Inheritance
    System.Object
    UsingItemEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    IUsableEvent
    IItemEvent
    IExiledEvent
    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 Source

    UsingItemEventArgs(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 Source

    Cooldown

    Gets or sets the item cooldown.

    Declaration
    public float Cooldown { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Item

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    Player

    Gets the player who using the item.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    Usable

    Gets the item that the player using.

    Declaration
    public Usable Usable { get; }
    Property Value
    Type Description
    Usable

    Implements

    IPlayerEvent
    IDeniableEvent
    IUsableEvent
    IItemEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX