Skip to content

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

Merged
mdcfe merged 1 commit into2.xfrom
unknown repository
Jan 1, 2025
Merged

Skip upgrading random teleport config when tpr.yml isn't initialized …#6004
mdcfe merged 1 commit into2.xfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost 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