Table of Contents

Class EarningAchievementEventArgs

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

Contains all information before a player earns an achievement.

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

Constructors

EarningAchievementEventArgs(Player, AchievementName, bool)

Initializes a new instance of the EarningAchievementEventArgs class.

public EarningAchievementEventArgs(Player player, AchievementName achievementName, bool isAllowed = true)

Parameters

player Player
achievementName AchievementName
isAllowed bool

Properties

AchievementName

Gets the achievement that will be earned.

public AchievementName AchievementName { get; }

Property Value

AchievementName

IsAllowed

Gets or sets a value indicating whether the achievement will be awarded to the player.

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who earned the achievement.

public Player Player { get; }

Property Value

Player