Skip to content

bind chat or paper1.21.8 error fixed - #16

Closed
missqwq wants to merge 1 commit into
NeoVoxelDev:masterfrom
missqwq:bind-chat-or-paper1.21.8-error-fixes
Closed

missqwq wants to merge 1 commit into
NeoVoxelDev:masterfrom
missqwq:bind-chat-or-paper1.21.8-error-fixes

Conversation

@missqwq

@missqwq missqwq commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Fixed a NeoBot binding issue. Previously, setting it to false still resulted in a successful binding message. Now, setting two false values, like this:

"account": {

"require-binding": false,

"require-binding-message": "Please bind your QQ or Discord account before accessing the server."

"notify-bind-success": false

Also fixed a Paper 1.21.8 loading issue:

Issue: NeoBot completely failed to load on Paper 1.21.8. There were no NeoBot errors in the logs, and it disappeared from the plugin list.

Root Cause: Paper 1.21.8 added a plugin remapping step (PluginRemapper). Before loading the plugin JAR, it processes it. This step is very strict in checking for duplicate entries in the zip file; if duplicates are found, an exception is thrown, and the entire plugin loading process is aborted.

NeoBot's JAR file contained duplicate entries: To ensure compatibility with Java 8-21+, the project used the "Multi-Version JAR" (MRJAR) technique, manually placing the class files for the newer GraalJS version (Java 17+ only) into the META-INF/versions/17 directory. However, during packaging (build.gradle.kts:90-97), deduplication wasn't performed. The GraalJS dependency tree contained 12 JARs, each with its own META-INF/MANIFEST.MF file, all located in the same target path, resulting in 12 duplicate MANIFEST.MF entries. Older versions of Paper/Spigot were tolerant of this duplication and didn't report errors, but the new validation in version 1.21.8 directly refused to load them.

Solution: Added the line exclude("META-INF/MANIFEST.MF") to the packaging configuration, preventing this overridden directory from including the individual JAR manifests. After rebuilding, the number of duplicate entries was reduced from 12 to 0, while other functions remained unaffected.

@missqwq

missqwq commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

pr close 20260904

@missqwq missqwq closed this Sep 3, 2026
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.

1 participant