apisium / papershelled Goto Github PK
View Code? Open in Web Editor NEWA Paper plugin mixin development framework.
License: GNU General Public License v3.0
A Paper plugin mixin development framework.
License: GNU General Public License v3.0
paichen@chens-Mac-mini PluginDevEnv % java -javaagent:PaperShelled-0.0.1.jar -jar purpur-paperclip-1.18.1-R0.1-SNAPSHOT-reobf.jar --nogui
[14:18:59 INFO]: [PaperShelled] PaperShelled version: 0.0.1 (Thu, Sep 16, 2021 05:57:56 AM GMT)
[14:18:59 INFO]: [PaperShelled] You can get the latest updates from: https://github.com/Apisium/PaperShelled
[14:18:59 INFO]: [PaperShelled:mixin] SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/Volumes/PiExDisk/Code/Minecraft/Server/PluginDevEnv/PaperShelled-0.0.1.jar Service=PaperShelled Env=SERVER
[14:18:59 INFO]: [PaperShelled:mixin] Attempting to load Hot-Swap agent
Starting org.bukkit.craftbukkit.Main
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:208)
at cn.apisium.papershelled.PaperShelledAgent$Transformer.transform(PaperShelledAgent.java:45)
at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:38)
at java.base/java.lang.Thread.run(Thread.java:833)
Exception in thread "ServerMain" java.lang.NoClassDefFoundError: cn/apisium/papershelled/PaperShelledAgent
at org.bukkit.craftbukkit.Main.main(Unknown Source)
at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: cn.apisium.papershelled.PaperShelledAgent
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 3 more
paichen@chens-Mac-mini PluginDevEnv %
version 1.0.0 in jitpack is using fat jar with dependencies
I write a PaperShelled plugin to try it out, but I found that adding the @Dependency
annotation for the Bukkit plugin I need to modify causes the PaperShelled plugin to fail to load, it shows the message Could not load 'myplugin.jar'
without further information, which took me a lot of time to figure out. :(
However, if I don't depend on that Bukkit plugin, the PaperShelled plugin will show a "target class not found" error during loading (when using Mixin injection). It seems that the PaperShelled plugin is loaded much earlier than the Bukkit plugin, causing it to not find the classes from the Bukkit plugin.
This is my first time using Mixin, and I don't have any related knowledge, so I wanted to ask if there is a suitable solution. Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.