It seems you’re using PaperWeight on version < 1.20.5, so don’t forget re-obfuscate your plugin to Notch name.
You can add "reobfJar" to your build command, like "gradle clean build reobfJar".
You can refer to this code
https://github.com/Lumine1909/CustomWorldHeight/blob/main/src/main/java/io/github/lumine1909/WorldListener.java
(I don't use paperweight because it will make reflection more complicated
I also changed ResourceKey and LightEngine of paper server
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.