8000 Detect UnsupportedApiVersionErrors in newer versions of Paper by pavog · Pull Request #79 · aternosorg/codex-minecraft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dismiss alert

Detect UnsupportedApiVersionErrors in newer versions of Paper #79

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

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Detect UnsupportedApiVersionErrors in newer versions of Paper #79

merged 3 commits into from
Jul 4, 2024

Conversation

pavog
Copy link
Member
@pavog pavog commented Jul 4, 2024

In older versions of Paper the message is:

Could not load 'plugins/AuctionHouse-1.19-3.3.1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.19

In newer versions of Paper the message is:

Could not load plugin 'worldedit-bukkit-7.3.4-beta-01.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.25

This PR adds a regex pattern to also detect the new message.
This PR also changes the old regex pattern so that both patterns return the same matches and the function setMatches can process matches for both patterns in the same way.
In this case these are:

  • File name of the plugin (e.g. worldedit-bukkit-7.3.4-beta-01.jar)
  • Name of the plugin (e.g. worldedit-bukkit-7.3.4-beta-01)
  • Name of the folder (e.g. plugins)
  • API version (e.g. 1.25)

@matthi4s matthi4s merged commit 2ffda79 into aternosorg:master Jul 4, 2024
3 checks passed
@pavog pavog deleted the unsupported-api-version branch July 4, 2024 11:11
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.

2 participants
0