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

Skip upgrading random teleport config when tpr.yml isn't initialized … #6004

Merged

Conversation

henningrck
Copy link
Contributor

@henningrck henningrck commented Jan 1, 2025

Information

This PR fixes #6003.

Details

Proposed fix:

If there's no tpr.yml, upgrading the random teleport config will fail and the plugin cannot be loaded. Now, the upgrade will be skipped, in case the file is missing. The file will be initialized afterward.

Environments tested:

OS: Windows 11 Home 24H2

Java version: OpenJDK Runtime Environment Temurin-21.0.5+11 (build 21.0.5+11-LTS)

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

Demonstration:

https://gist.github.com/henningrck/273e6ab72473780a13c121f6301da8ec

…yet (#6003)

If there's no tpr.yml, upgrading the random teleport config will fail
and the plugin cannot be loaded.
@mdcfe mdcfe enabled auto-merge (rebase) January 1, 2025 17:01
@mdcfe mdcfe merged commit 667b0f7 into EssentialsX:2.x Jan 1, 2025
1 check passed
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.

Unable to load plugin with missing tpr.yml
2 participants