BeYkeRYkt / LightAPI

[ARCHIVED] Bukkit/Sponge library for create invisible light source
MIT License
56 stars 36 forks source link

[BUG] Light API not working on paper 1.18.2 #29

Closed fnrcum closed 2 years ago

fnrcum commented 2 years ago

Like in the title, the LightAPI currently does not work on paper 1.18.2

[13:43:19] [Server thread/INFO]: [LightAPI] Enabling LightAPI vbukkit-5.1.0 (build SNAPSHOT)
[13:43:19] [Server thread/INFO]: <LightAPI>: [INFO] Initializing LightAPI...
[13:43:19] [Server thread/WARN]: java.lang.ClassNotFoundException: ru.beykerykt.minecraft.lightapi.bukkit.internal.handler.craftbukkit.nms.v1_18_R2.StarlightNMSHandler
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:151)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103)
[13:43:19] [Server thread/WARN]:    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[13:43:19] [Server thread/WARN]:    at java.base/java.lang.Class.forName0(Native Method)
[13:43:19] [Server thread/WARN]:    at java.base/java.lang.Class.forName(Class.java:375)
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.bukkit.internal.handler.craftbukkit.HandlerFactory.createHandler(HandlerFactory.java:71)
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.bukkit.internal.BukkitPlatformImpl.initHandler(BukkitPlatformImpl.java:196)
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.bukkit.internal.BukkitPlatformImpl.initialization(BukkitPlatformImpl.java:228)
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.common.LightAPI.initialization(LightAPI.java:88)
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:70)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:501)
[13:43:19] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:559)
[13:43:19] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:473)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:666)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:433)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:316)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1156)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
[13:43:19] [Server thread/WARN]:    at java.base/java.lang.Thread.run(Thread.java:833)
[13:43:19] [Server thread/WARN]: java.lang.IllegalStateException: Initialization failed! Code: -1
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.common.LightAPI.initialization(LightAPI.java:96)
[13:43:19] [Server thread/WARN]:    at LightAPI-Bukkit-5.1.0.jar//ru.beykerykt.minecraft.lightapi.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:70)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[13:43:19] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:501)
[13:43:19] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:559)
[13:43:19] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:473)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:666)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:433)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:316)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1156)
[13:43:19] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
[13:43:19] [Server thread/WARN]:    at java.base/java.lang.Thread.run(Thread.java:833)
[13:43:19] [Server thread/INFO]: [LightAPI] Disabling LightAPI vbukkit-5.1.0 (build SNAPSHOT)
jonaas13 commented 2 years ago

@BeYkeRYkt Any eta to when this will be fixed?

PaladinFallen commented 2 years ago

Getting the same warnings as well..

BeYkeRYkt commented 2 years ago

Update coming soon

ErythroCraft commented 2 years ago

Light API not working on spigot 1.18.2

[18:20:27] [Server thread/INFO]: [LightAPI] Enabling LightAPI vbukkit-5.1.0 (build SNAPSHOT) [18:20:27] [Server thread/INFO]: : [INFO] Initializing LightAPI...

[18:20:27] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99) [18:20:27] [Server thread/WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) [18:20:27] [Server thread/WARN]: at java.base/java.lang.Class.forName0(Native Method) [18:20:27] [Server thread/WARN]: at java.base/java.lang.Class.forName(Class.java:375) [18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.bukkit.internal.handler.craftbukkit.HandlerFactory.createHandler(HandlerFactory.java:71) [18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.bukkit.internal.BukkitPlatformImpl.initHandler(BukkitPlatformImpl.java:196) [18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.bukkit.internal.BukkitPlatformImpl.initialization(BukkitPlatformImpl.java:228) [18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.common.LightAPI.initialization(LightAPI.java:88) [18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:70) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) [18:20:27] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:517) [18:20:27] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:431) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:612) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:414) [18:20:27] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:263) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1007) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [18:20:27] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

[18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.common.LightAPI.initialization(LightAPI.java:96) [18:20:27] [Server thread/WARN]: at ru.beykerykt.minecraft.lightapi.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:70) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) [18:20:27] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) [18:20:27] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:517) [18:20:27] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:431) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:612) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:414) [18:20:27] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:263) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1007) [18:20:27] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) [18:20:27] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:833) [18:20:27] [Server thread/INFO]: [LightAPI] Disabling LightAPI vbukkit-5.1.0 (build SNAPSHOT)

ErythroCraft commented 2 years ago

https://www.geeksforgeeks.org/how-to-solve-java-lang-illegalstateexception-in-java-main-thread/

Iuriiiii commented 2 years ago

I tried to import the LightAPI project on Eclipse and IntelliJ exhaustively to fix it, but it was impossible. I will stay waiting for the last update.

saucesteals commented 2 years ago

@Iuriiiii I saw a bunch of commits from January and a couple from the day that @BeYkeRYkt said there would be an update soon so I assumed they had fixed the problem and attempted to compile + package myself but it truly was impossible

nhanledev commented 2 years ago

I hope this can be fixed soon

myavuzokumus commented 2 years ago

Any ETA?

joaoespanhol commented 2 years ago

update github, is no same update spigot, why?

@BeYkeRYkt

Chris6ix commented 2 years ago

Any updates on this? LightAPI is the only thing keeping my Server from updating to 1.18.2...

D-Volk commented 2 years ago

Waiting update...

purejosh commented 2 years ago

Heh, I was going to open a ticket, or bump an open one about 1.18.2, but it appears that many others have done so.

I hope the update goes smoothly. Thanks, devs.

notbike commented 2 years ago

same problem here

Dymeth commented 2 years ago

Updated, see https://github.com/BeYkeRYkt/LightAPI/releases Thank you, BeYkeRYkt <3

Chris6ix commented 2 years ago

Thanks @BeYkeRYkt for updating :)