From 43db3b72c3deb1c168404c699db741337fe7bec5 Mon Sep 17 00:00:00 2001
From: Yannik F <73497566+reversum@users.noreply.github.com>
Date: Mon, 21 Jul 2025 11:05:05 +0200
Subject: [PATCH 1/3] add IsOptedOutOfScp getter for checking if player has opt
out of scp enabled
---
EXILED/Exiled.API/Features/Player.cs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs
index 779982d2fb..e465e5f823 100644
--- a/EXILED/Exiled.API/Features/Player.cs
+++ b/EXILED/Exiled.API/Features/Player.cs
@@ -676,6 +676,12 @@ public ScpSpawnPreferences.SpawnPreferences ScpPreferences
///
public bool IsScp => Role?.Type.IsScp() ?? false;
+ ///
+ /// Indicates whether the player has enabled the "Opt out of SCP" setting,
+ /// which prevents them from being assigned any SCP role.
+ ///
+ public bool IsOptedOutOfScp => ScpPlayerPicker.IsOptedOutOfScp(ReferenceHub);
+
///
/// Gets a value indicating whether the player's is any human rank.
///
From a6c64e6b2372f6dcd9e03e509049d15aa5dc94d4 Mon Sep 17 00:00:00 2001
From: Yannik F <73497566+reversum@users.noreply.github.com>
Date: Mon, 21 Jul 2025 11:08:55 +0200
Subject: [PATCH 2/3] fix summary tag
---
EXILED/Exiled.API/Features/Player.cs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs
index e465e5f823..47bec435e2 100644
--- a/EXILED/Exiled.API/Features/Player.cs
+++ b/EXILED/Exiled.API/Features/Player.cs
@@ -677,9 +677,8 @@ public ScpSpawnPreferences.SpawnPreferences ScpPreferences
public bool IsScp => Role?.Type.IsScp() ?? false;
///
- /// Indicates whether the player has enabled the "Opt out of SCP" setting,
- /// which prevents them from being assigned any SCP role.
- ///
+ /// Gets Indicates whether the player has enabled the "Opt out of SCP" setting, which prevents them from being assigned any SCP role.
+ ///
public bool IsOptedOutOfScp => ScpPlayerPicker.IsOptedOutOfScp(ReferenceHub);
///
From 23fa0989656117230652cd3f43a9ff553173e29a Mon Sep 17 00:00:00 2001
From: Yannik F <73497566+reversum@users.noreply.github.com>
Date: Mon, 21 Jul 2025 11:10:11 +0200
Subject: [PATCH 3/3] fixed my broken english
---
EXILED/Exiled.API/Features/Player.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs
index 47bec435e2..2fb5e63638 100644
--- a/EXILED/Exiled.API/Features/Player.cs
+++ b/EXILED/Exiled.API/Features/Player.cs
@@ -677,7 +677,7 @@ public ScpSpawnPreferences.SpawnPreferences ScpPreferences
public bool IsScp => Role?.Type.IsScp() ?? false;
///
- /// Gets Indicates whether the player has enabled the "Opt out of SCP" setting, which prevents them from being assigned any SCP role.
+ /// Gets a value indicating whether the player has enabled the "Opt out of SCP" setting, which prevents them from being assigned any SCP role.
///
public bool IsOptedOutOfScp => ScpPlayerPicker.IsOptedOutOfScp(ReferenceHub);