Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Exiled::API] Additions to Features.Player #2435

Merged
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
18 changes: 18 additions & 0 deletions Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,24 @@ public bool BadgeHidden
/// </summary>
public bool IsInventoryFull => Items.Count >= Inventory.MaxSlots;

/// <summary>
/// Gets a value indicating whether the player is a target of SCP-096.
/// </summary>
/// <remarks>
/// This property checks if the player is present in the list of targets maintained by SCP-096.
/// </remarks>
/// <returns>True if the player is a target of SCP-096; otherwise, false.</returns>
public bool IsScp096Target => Player.List.Any(x => x.Role is Roles.Scp096Role scp096Role && scp096Role.Targets.Contains(x));

/// <summary>
/// Gets a value indicating whether the player is an observer of SCP-173.
/// </summary>
/// <remarks>
/// This property checks if the player is present in the list of observers maintained by SCP-173.
/// </remarks>
/// <returns>True if the player is an observer of SCP-173; otherwise, false.</returns>
public bool IsScp173Observer => Player.List.Any(x => x.Role is Roles.Scp173Role scp173Role && scp173Role.ObservingPlayers.Contains(x));

/// <summary>
/// Gets a value indicating whether or not the player has agreed to microphone recording.
/// </summary>
Expand Down
Loading