Skip to content
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

Prevent getting jail worlds before world load #4216

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

triagonal
Copy link
Member

@triagonal triagonal commented Jun 9, 2021

Information

This PR fixes a bug where Jail worlds would be obtained before being loaded by the server.

Details

Proposed fix:
Use LazyLocation instead of Location inside Jails and perform a check inside the getJail method to ensure the world has been loaded, throwing an error if unloaded (or nonexistent).

Environments tested:

OS: Windows 10 20H2
Java version: openjdk version "11.0.10"

  • Most recent Paper version

@JRoy JRoy added the type: bugfix PRs that fix bugs in EssentialsX. label Jun 9, 2021
@JRoy JRoy added this to the 2.19.0 milestone Jun 9, 2021
@JRoy JRoy merged commit 0d71fe6 into EssentialsX:2.x Jun 9, 2021
@triagonal triagonal deleted the fix/jail-worlds branch June 9, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bugfix PRs that fix bugs in EssentialsX.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants