AncientGates icon indicating copy to clipboard operation
AncientGates copied to clipboard

folia support

Open 1016470686 opened this issue 8 months ago • 6 comments

Hey, I want to install it on my folia server. Does it support folia?

1016470686 avatar Apr 30 '25 17:04 1016470686

Probably does, try it and see

ChanceSD avatar May 01 '25 00:05 ChanceSD

Probably does, try it and see

I've tried it, but unfortunately this plugin doesn’t support folia. Folia is an excellent Minecraft server. Would you consider adding compatibility in future updates?

1016470686 avatar May 01 '25 05:05 1016470686

What errors do you see? Check your console logs and I will fix them if possible. Edit: Nevermind, it doesn't even have the folia supported line in plugin.yml, I will try to add support

ChanceSD avatar May 02 '25 16:05 ChanceSD

What errors do you see? Check your console logs and I will fix them if possible. Edit: Nevermind, it doesn't even have the folia supported line in plugin.yml, I will try to add support

When using the releases provided by the project, the server reported the following error:

[00:19:57 ERROR]: [DirectoryProviderSource] Error loading plugin: Could not load plugin 'AncientGates v2.7.1' as it is not marked as supporting Folia! java.lang.RuntimeException: Could not load plugin 'AncientGates v2.7.1' as it is not marked as supporting Folia! at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProviderFactory.build(SpigotPluginProviderFactory.java:40) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProviderFactory.build(SpigotPluginProviderFactory.java:28) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.provider.type.PluginFileType.register(PluginFileType.java:72) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.provider.source.FileProviderSource.registerProviders(FileProviderSource.java:95) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.registerProviders(DirectoryProviderSource.java:52) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.registerProviders(DirectoryProviderSource.java:17) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.util.EntrypointUtil.registerProvidersFromSource(EntrypointUtil.java:15) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.PluginInitializerManager.load(PluginInitializerManager.java:113) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at net.minecraft.server.Main.main(Main.java:112) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.PaperBootstrap.boot(PaperBootstrap.java:21) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at org.bukkit.craftbukkit.Main.main(Main.java:281) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

When I tried adding "folia-supported: true" to the "plugin.yml" file and rebuilt the project, the server's error changed to this: (I have zero programming knowledge – I might have messed up the build process, but I still managed to output the .jar file successfully.)

[00:27:16 ERROR]: Error occurred while enabling AncientGates v2.7.1 (Is it up to date?) java.lang.UnsupportedOperationException: null at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimerAsynchronously(CraftScheduler.java:251) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimerAsynchronously(CraftScheduler.java:238) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at org.bukkit.scheduler.BukkitRunnable.runTaskTimerAsynchronously(BukkitRunnable.java:140) ~[luminol-api-1.21.4-R0.1-SNAPSHOT.jar:?] at AncientGates.jar/org.mcteam.ancientgates.Plugin.onEnable(Plugin.java:178) ~[AncientGates.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[luminol-api-1.21.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[luminol-api-1.21.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:657) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:606) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:785) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:515) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:324) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1245) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:353) ~[luminol-1.21.4.jar:1.21.4-DEV-c4deb93] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Oh, I almost forgot to mention – the "luminol-1.21.4.jar" referenced in the error is a fork of "folia".

1016470686 avatar May 02 '25 16:05 1016470686

I changed most methods that would probably break on Folia, I didn't really test it though. If you can please test the new build from here: https://ci.codemc.io/job/ChanceSD/job/AncientGates/

ChanceSD avatar May 02 '25 20:05 ChanceSD

I changed most methods that would probably break on Folia, I didn't really test it though. If you can please test the new build from here: https://ci.codemc.io/job/ChanceSD/job/AncientGates/

I’m glad you updated so quickly! I tried the dev build you provided. There’s good news and bad news:

The good news is the console no longer outputs errors during server startup.

The bad news is the plugin still doesn’t work properly. I’ve attached a video file and the server’s log files for reference.

video

latest.log

1016470686 avatar May 03 '25 04:05 1016470686