Skip to content

Fixed NoSuchMethodException Player.getRespawnLocation()#6460

Open
CrystalD5 wants to merge 1 commit intoEssentialsX:2.xfrom
CrystalD5:2.x
Open

Fixed NoSuchMethodException Player.getRespawnLocation()#6460
CrystalD5 wants to merge 1 commit intoEssentialsX:2.xfrom
CrystalD5:2.x

Conversation

@CrystalD5
Copy link

Information

This PR fixes #6459.

Details

Proposed fix:

Update the version in the method selection condition from 1.16.1 to 1.20.4.

Environments tested:

OS: Linux

Java version: OpenJDK 17.0.18

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8
  • Paper version 1.16.5

Demonstration:

Before: https://gist.github.com/CrystalD5/9f09730bffa20c75d053463a8e68c158 (Error log from Issue #6459)
After: No log to show

Fixed condition to reflect Player.getRespawnLocation() not being available until version 1.20.4
Added 1.20.4 to the VersionUtil list
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.

EssentialsSpawn NoSuchMethodError getRespawnLocation

1 participant