Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use the OfflinePlayer$getPlayer method instead of casting to Player class #1040

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

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Use the OfflinePlayer$getPlayer method instead of casting to Player class #1040

merged 1 commit into from
Mar 7, 2024

Conversation

DevCyntrix
Copy link
Contributor

@DevCyntrix DevCyntrix commented Jan 29, 2024

Pull Request

Type

  • Internal change (Doesn't affect end-user).
  • External change (Does affect end-user).
  • Wiki (Changes towards the Wiki).
  • Other: __________

Description

Uses the OfflinePlayer$getPlayer method instead of casting to the Player class. That avoids a class cast exception if other plugins uses an own implementation of the offline player class.

…lass

You should use this to avoid a class cast exception if some other plugins uses an own Implementation of the offline player.
@iGabyTM iGabyTM merged commit 7a0be5e into PlaceholderAPI:master Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants