Table of Contents

Class DroppingItemEventArgs

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

Contains all information before a player drops an item.

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

Constructors

DroppingItemEventArgs(Player, ItemBase, bool, bool)

Initializes a new instance of the DroppingItemEventArgs class.

public DroppingItemEventArgs(Player player, ItemBase item, bool isThrown, bool isAllowed = true)

Parameters

player Player
item ItemBase

isThrown bool
isAllowed bool

Properties

IsAllowed

Gets or sets a value indicating whether the item can be dropped.

public bool IsAllowed { get; set; }

Property Value

bool

IsThrown

Gets or sets a value indicating whether the item was thrown.

public bool IsThrown { get; set; }

Property Value

bool

Item

Gets the item to be dropped.

public Item Item { get; }

Property Value

Item

Player

Gets the player who's dropping the item.

public Player Player { get; }

Property Value

Player