Git Product home page Git Product logo

papershelled's People

Contributors

shirasawasama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

papershelled's Issues

NullPointerException when using Purpur 1.18.1

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 %

[Question] Can PaperShelled to be used to modify the code of other Bukkit plugins by Mixin?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.