/// <summary> /// Occurs when a player dies. /// <para>Event is passed the <strong><see cref="TTTReborn.Player"/></strong> instance of the player who died.</para> /// </summary> public DiedEvent(TTTReborn.Player player) : base(player) { if (player != null && player.LastAttacker != null) { IsAttackerPlayer = player.LastAttacker is TTTReborn.Player; if (IsAttackerPlayer) { LastAttackerName = player.LastAttacker.Client?.Name ?? "???"; } else { LastAttackerName = player.LastAttacker.Name; } } }
/// <summary> /// Occurs when the player is changed to spectate. /// <para>Event is passed the <strong><see cref="TTTReborn.Player"/></strong> instance of the player who was changed to spectate.</para> /// </summary> public ChangeEvent(TTTReborn.Player player) : base(player) { }