Question editing velocity plugins and see errors when running it

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

Marc2008

New member
May 24, 2023
3
0
1
hello I am a beginner when editing plugins in eclipse and I get an error when I export the plugin when I run the server

[18:58:11 ERROR]: Exception in thread "main" java.lang.NoClassDefFoundError: ProxyServer
[18:58:11 ERROR]: at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
[18:58:11 ERROR]: at java.base/java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
[18:58:11 ERROR]: at java.base/java.lang.Class.getDeclaredConstructors(Unknown Source)
[18:58:11 ERROR]: at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:299)
[18:58:11 ERROR]: at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:121)
[18:58:11 ERROR]: at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:715)
[18:58:11 ERROR]: at com.google.inject.internal.UntargettedBindingProcessor$1.visit(UntargettedBindingProcessor.java:54)
[18:58:11 ERROR]: at com.google.inject.internal.UntargettedBindingProcessor$1.visit(UntargettedBindingProcessor.java:36)
[18:58:11 ERROR]: at com.google.inject.internal.UntargettedBindingImpl.acceptTargetVisitor(UntargettedBindingImpl.java:52)
[18:58:11 ERROR]: at com.google.inject.internal.UntargettedBindingProcessor.visit(UntargettedBindingProcessor.java:35)
[18:58:11 ERROR]: at com.google.inject.internal.UntargettedBindingProcessor.visit(UntargettedBindingProcessor.java:27)
[18:58:11 ERROR]: at com.google.inject.internal.BindingImpl.acceptVisitor(BindingImpl.java:99)
[18:58:11 ERROR]: at com.google.inject.internal.AbstractProcessor.lambda$process$0(AbstractProcessor.java:53)
[18:58:11 ERROR]: at java.base/java.util.ArrayList.removeIf(Unknown Source)
[18:58:11 ERROR]: at java.base/java.util.ArrayList.removeIf(Unknown Source)
[18:58:11 ERROR]: at com.google.inject.internal.AbstractProcessor.process(AbstractProcessor.java:50)
[18:58:11 ERROR]: at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:216)
[18:58:11 ERROR]: at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
[18:58:11 ERROR]: at com.google.inject.Guice.createInjector(Guice.java:87)
[18:58:11 ERROR]: at com.google.inject.Guice.createInjector(Guice.java:69)
[18:58:11 ERROR]: at com.google.inject.Guice.createInjector(Guice.java:59)
[18:58:11 ERROR]: at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:122)
[18:58:11 ERROR]: at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:155)
[18:58:11 ERROR]: at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:345)
[18:58:11 ERROR]: at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:227)
[18:58:11 ERROR]: at com.velocitypowered.proxy.Velocity.main(Velocity.java:69)
[18:58:11 ERROR]: Caused by: java.lang.ClassNotFoundException: ProxyServer
[18:58:11 ERROR]: at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:87)
[18:58:11 ERROR]: at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:64)
[18:58:11 ERROR]: at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
[18:58:11 ERROR]: ... 26 more

plz help I can't read this XD
 

4drian3d

Velocity Developer
Jan 5, 2022
60
4
8
Perú
It seems that you have edited the jar directly without compiling it since it seems that you have removed the ProxyServer import.
If you don't have the source of a plugin, I would recommend that you consult with the original author or else make a separate plugin
 

Marc2008

New member
May 24, 2023
3
0
1
It seems that you have edited the jar directly without compiling it since it seems that you have removed the ProxyServer import.
If you don't have the source of a plugin, I would recommend that you consult with the original author or else make a separate plugin
i do have the source of the plugin but what you mean by compiling? Do you mean exporting it?
source: https://github.com/exaroton/exaroton-velocity