Table of Contents

Class PickingUpItemEventArgs

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

Contains all information before a player picks up an item.

public class PickingUpItemEventArgs : IPlayerEvent, IPickupEvent, IDeniableEvent, IExiledEvent
Inheritance
PickingUpItemEventArgs
Implements
Inherited Members
Extension Methods

Constructors

PickingUpItemEventArgs(Player, ItemPickupBase, bool)

Initializes a new instance of the PickingUpItemEventArgs class.

public PickingUpItemEventArgs(Player player, ItemPickupBase pickup, bool isAllowed = true)

Parameters

player Player
pickup ItemPickupBase
isAllowed bool

Properties

IsAllowed

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

public bool IsAllowed { get; set; }

Property Value

bool

Pickup

Gets the pickup that's being picked up.

public Pickup Pickup { get; }

Property Value

Pickup

Player

Gets the player who's picking up an item.

public Player Player { get; }

Property Value

Player