Skip to content

feat: add IsOptedOutOfScp getter to Player class - #594

Closed
reversum wants to merge 3 commits into
ExMod-Team:devfrom
reversum:dev
Closed

feat: add IsOptedOutOfScp getter to Player class#594
reversum wants to merge 3 commits into
ExMod-Team:devfrom
reversum:dev

Conversation

@reversum

Copy link
Copy Markdown

Description

Describe the changes
add IsOptedOutOfScp getter for checking if player has opt out of scp enabled

What is the current behavior?
You need to use the ScpPlayerPicker class from the Assembly to check if a player is opted out

What is the new behavior?
You can directly check if a player is opted out in the Exiled.API.Features.Player class with IsOptedOutOfScp

Does this PR introduce a breaking change?
No

Other information:


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

@github-actions github-actions Bot added the API label Jul 21, 2025
@reversum reversum changed the title add IsOptedOutOfScp getter to Player class feat: add IsOptedOutOfScp getter to Player class Jul 21, 2025
@reversum

Copy link
Copy Markdown
Author

there is already Player ScpPreferences.OptOutOfScp

@reversum reversum closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant