PaperMC / Paperclip

Bootstrap utility and launcher for the Paper Minecraft server
MIT License
120 stars 51 forks source link

Fix issue with -classpath arguments being ignored on Java 17 #49

Closed Dogatron03 closed 2 years ago

Dogatron03 commented 2 years ago

Following code has been tested by compiling Paperclip and replacing classes in Paper jar with resulting new classes.

jpenilla commented 2 years ago

This will break things. It's very much intentional to use the parent classloader here. If you want to launch the server with extra jars on the classpath, you can use -classpath with the jars extracted into libraries and versions, and org.bukkit.craftbukkit.Main as the main class. A better solution to this might be some sort of way to add to the library jars without modifying the paperclip, ie through a command line argument or something.