Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignite cant load the api of paper plugin #174

Closed
FrankHan052176 opened this issue Jun 30, 2024 · 2 comments
Closed

Ignite cant load the api of paper plugin #174

FrankHan052176 opened this issue Jun 30, 2024 · 2 comments

Comments

@FrankHan052176
Copy link

My Server version:
This server is running Paper version git-Paper-196 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 773dd72)
You are running the latest version
Mixin version: 0.8.5

In my injected function, i use the api of MythicMobs, but it throw the error

[20:34:13 WARN]: Unexpected exception while parsing console command "summon mythicmobs:test -1351 104 4384"
org.bukkit.command.CommandException: Unhandled exception executing 'summon mythicmobs:test -1351 104 4384' in org.bukkit.craftbukkit.v1_20_R1.command.VanillaCommandWrapper(summon)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:987) ~[?:git-Paper-196]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchServerCommand(CraftServer.java:972) ~[?:git-Paper-196]
        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:500) ~[?:git-Paper-196]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[?:git-Paper-196]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1393) ~[?:git-Paper-196]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1170) ~[?:git-Paper-196]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[?:git-Paper-196]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: io/lumine/mythic/bukkit/MythicBukkit
        at top.missingbyriver.ignitemodify.mixin.plugins.FakeEntity.b(FakeEntity.java:44) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.lambda$createEntity$4(SummonCommand.java:59) ~[?:?]
        at java.util.Optional.map(Optional.java:260) ~[?:?]
        at net.minecraft.world.entity.EntityType.loadEntityRecursive(EntityType.java:615) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.createEntity(SummonCommand.java:58) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.spawnEntity(SummonCommand.java:81) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.lambda$register$2(SummonCommand.java:42) ~[?:?]
        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[?:?]
        at net.minecraft.commands.Commands.performCommand(Commands.java:324) ~[?:?]
        at net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:303) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R1.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:45) ~[?:git-Paper-196]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[?:?]
        ... 8 more
Caused by: java.lang.ClassNotFoundException: io.lumine.mythic.bukkit.MythicBukkit
        at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
        at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
        at space.vectrix.ignite.launch.ember.EmberClassLoader.loadClass(EmberClassLoader.java:163) ~[ignite.jar:1.0.1]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
        at top.missingbyriver.ignitemodify.mixin.plugins.FakeEntity.b(FakeEntity.java:44) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.lambda$createEntity$4(SummonCommand.java:59) ~[?:?]
        at java.util.Optional.map(Optional.java:260) ~[?:?]
        at net.minecraft.world.entity.EntityType.loadEntityRecursive(EntityType.java:615) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.createEntity(SummonCommand.java:58) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.spawnEntity(SummonCommand.java:81) ~[?:?]
        at net.minecraft.server.commands.SummonCommand.lambda$register$2(SummonCommand.java:42) ~[?:?]
        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[?:?]
        at net.minecraft.commands.Commands.performCommand(Commands.java:324) ~[?:?]
        at net.minecraft.commands.Commands.performPrefixedCommand(Commands.java:303) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R1.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:45) ~[?:git-Paper-196]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[?:?]
        ... 8 more
@FrankHan052176
Copy link
Author

i guess it's caused by minecraft classloader cant load the class which loaded by bukkit classloader?

@vectrixdevelops
Copy link
Member

vectrixdevelops commented Aug 27, 2024

Yeah at the time mixin is injecting, the plugins have not been class loaded. There's no easy way to mixin to a plugin. If you need further help feel free to ask in the Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants