Class PickingUpItemEventArgs
Contains all information before a player picks up an item.
Inheritance
System.Object
PickingUpItemEventArgs
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 PickingUpItemEventArgs : IPlayerEvent, IPickupEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourcePickingUpItemEventArgs(Player, ItemPickupBase, Boolean)
Initializes a new instance of the PickingUpItemEventArgs class.
Declaration
public PickingUpItemEventArgs(Player player, ItemPickupBase pickup, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
InventorySystem.Items.Pickups.ItemPickupBase | pickup | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether the item can be picked up.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Pickup
Gets the pickup that's being picked up.
Declaration
public Pickup Pickup { get; }
Property Value
Type | Description |
---|---|
Pickup |
Player
Gets the player who's picking up an item.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |