Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions EXILED/Exiled.Events/Handlers/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ public class Player
public static Event<EarningAchievementEventArgs> EarningAchievement { get; set; } = new();

/// <summary>
/// Invoked before using an <see cref="API.Features.Items.Item"/>.
/// Invoked before the player starts to use an <see cref="API.Features.Items.Usable"/>. In other words, it is invoked just before the animation starts.
/// </summary>
/// <remarks>
/// Will be invoked even if the <see cref="API.Features.Items.Usable"/> is on cooldown.
/// Candies are the only <see cref="API.Features.Items.Usable"/> that do not invoke this event.
/// </remarks>
public static Event<UsingItemEventArgs> UsingItem { get; set; } = new();

/// <summary>
/// Invoked after a <see cref="API.Features.Player"/> uses an <see cref="API.Features.Items.Usable"/>.
/// Invoked before a <see cref="API.Features.Player"/> finishes using a <see cref="API.Features.Items.Usable"/>. In other words, it is invoked after the animation finishes but before the <see cref="API.Features.Items.Usable"/> is actually used.
/// </summary>
public static Event<UsingItemCompletedEventArgs> UsingItemCompleted { get; set; } = new ();

Expand Down