Mixin for Paper-based Minecraft servers!
This is not magic, and you'll need JetBrains Runtime to properly run it.
- Download https://github.com/JetBrains/JetBrainsRuntime and extract it somewhere (If you are using itzg/minecraft-server, you can mount it as a volume on
/opt/java/openjdk) - Add
-XX:+AllowEnhancedClassRedefinitionto your JVM arguments - Build the project and add the resulting jar at
build/libs/PaperMixin-x.x.x.jarto your server's plugins folder - Create mixin module as per
exampledirectory - Add the resulting jar of the mixin module to
<server root>/modulesfolder
A lot of hacks are used to make this work, so if it doesn't work, please report it, and I'll try to fix it.
Other Java Runtime environments do not allow adding or removing methods. However, JetBrains Runtime allows it.