개인 자료란 (JE)

  서버 커뮤니티

Profile 라아아아밍 정품인증자

Raaaaming 143e9b3a85b04bbeb1c84ee946d42a87

Profile

질문하기 전문개발

이거 무슨 오류인가요.. 제발..(해결)

2024.02.17 조회 수 94 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 

[15:41:20 ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'YgdPlugin-4.1-BETA.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.IllegalStateException: Cannot get plugin for class org.raming.ygdplugin.YgdPlugin from a static initializer
        at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:127) ~[paper-1.20.1.jar:git-Paper-196]
        at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:35) ~[paper-1.20.1.jar:git-Paper-196]
        at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:116) ~[paper-1.20.1.jar:git-Paper-196]
        at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39) ~[paper-1.20.1.jar:git-Paper-196]
        at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:36) ~[paper-1.20.1.jar:git-Paper-196]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.loadPlugins(CraftServer.java:510) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:273) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-196]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalStateException: Cannot get plugin for class org.raming.ygdplugin.YgdPlugin from a static initializer
        at org.bukkit.plugin.java.JavaPlugin.getPlugin(JavaPlugin.java:429) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.raming.ygdplugin.YgdPlugin.<init>(YgdPlugin.java:51) ~[YgdPlugin-4.1-BETA.jar:?]
        at jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67) ~[?:?]
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
        at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
        at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:341) ~[?:?]
        at java.lang.Class.newInstance(Class.java:677) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:88) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:123) ~[paper-1.20.1.jar:git-Paper-196]
        ... 9 more

구글링도 해보고 여러가지 고쳐가면서 해봤는데 계속 같은 오류가 납니다.. 제발.. 아시는 분 있으시면 알려주세요..

2개의 댓글

코코냐
2024.02.17

혹시 static 메소드에서 this를 참조하진 않으셨냐요?

라아아아밍
2024.02.17
@코코냐

말씀해주신 걸 찾아보다가 제 실수를 발견했습니다.. 죄송합니다..