Table of Contents

Class DroppingAmmoEventArgs

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

Contains all information before a player drops ammo.

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

Constructors

DroppingAmmoEventArgs(Player, ItemType, ushort, bool)

Initializes a new instance of the DroppingAmmoEventArgs class.

public DroppingAmmoEventArgs(Player player, ItemType itemType, ushort amount, bool isAllowed = true)

Parameters

player Player
itemType ItemType
amount ushort
isAllowed bool

Properties

AmmoType

Gets the type of ammo being dropped.

public AmmoType AmmoType { get; }

Property Value

AmmoType

Amount

Gets or sets the amount of ammo being dropped.

public ushort Amount { get; set; }

Property Value

ushort

IsAllowed

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

public bool IsAllowed { get; set; }

Property Value

bool

ItemType

Gets the type of item being dropped instead of AmmoType. For example, if the plugin gives the player one of the items instead of ammo.

public ItemType ItemType { get; }

Property Value

ItemType

Player

Gets the player who's dropping the ammo.

public Player Player { get; }

Property Value

Player