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

[1.20.1] Incompatibility with EconomyShopGUI Premium 5.11.2 plugin #3133

Closed
won983212 opened this issue May 21, 2024 · 0 comments · Fixed by #3134
Closed

[1.20.1] Incompatibility with EconomyShopGUI Premium 5.11.2 plugin #3133

won983212 opened this issue May 21, 2024 · 0 comments · Fixed by #3134

Comments

@won983212
Copy link
Contributor

Minecraft Version : 1.20.1

Mohist Version : 695

Operating System : Mohist runs on Centos 7.8

Logs : https://pastebin.com/yV6DB08g

Plugin list : EconomyShopGUI 5.11.2

Description of issue :

The current 1.20.1 build is not compatible with the EconomyShopGUI Premium plugin. Below is the actual error that occurred:

java.lang.NoSuchFieldError: Class org.bukkit.inventory.meta.trim.TrimPattern does not have member field 'org.bukkit.inventory.meta.trim.TrimPattern HOST'

Upon analyzing the cause, it was found that the TrimPattern class does not actually contain the HOST field. It seems necessary to add this missing field.

Historically, some missing fields(HOST, ...) were also present in older versions of Spigot but were patched subsequently. You can refer to this commit for more details: Spigot: Add missing trim patterns added in 1.20

Currently, Mohist appears to be using the code from before this patch(above commit) was applied. Mohist: TrimPattern.java
I will be submitting a PR soon. Please review it later.

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 a pull request may close this issue.

1 participant