Skip to content

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