Class DroppingAmmoEventArgs
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
Properties
AmmoType
Gets the type of ammo being dropped.
public AmmoType AmmoType { get; }
Property Value
Amount
Gets or sets the amount of ammo being dropped.
public ushort Amount { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether the ammo can be dropped.
public bool IsAllowed { get; set; }
Property Value
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; }