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

Add api-version to plugin.yml #48

Merged
merged 2 commits into from
Aug 29, 2020
Merged

Conversation

WhiteHoodHacker
Copy link
Contributor

This is a simple one-line fix that will get rid of the following warning message on Bukkit/Spigot/Paper:

[Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[Server thread/WARN]: Legacy plugin sleep-most v4.6.0 does not specify an api-version.

I set the api-version to 1.16 since sleep-most's SpigotMC resource page lists 1.16 as the native version for the plugin, but it doesn't really matter. Here is the documentation for that attribute.

@mrgeneralq mrgeneralq merged commit 1bca370 into mrgeneralq:master Aug 29, 2020
@mrgeneralq mrgeneralq added the enhancement New feature or request label Aug 29, 2020
@mrgeneralq
Copy link
Owner

Thank you for this small but useful contribution. It's indeed better to specify the version.

@WhiteHoodHacker
Copy link
Contributor Author

Whoops, looks like specifying the latest api-version broke older versions. I found out that specifying the version as 1.13 instead of 1.16 will work since versions 1.12 and below ignore the api-version field and it will work for 1.13 - 1.15.

https://www.spigotmc.org/threads/how-bad-it-is-to-not-specify-an-api-version.420620/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants