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

1.21 UnsupportedOperationException on boot #17

Open
Tisawesomeness opened this issue Jun 29, 2024 · 0 comments · May be fixed by #19
Open

1.21 UnsupportedOperationException on boot #17

Tisawesomeness opened this issue Jun 29, 2024 · 0 comments · May be fixed by #19

Comments

@Tisawesomeness
Copy link

When starting BreweryNG 1.4.1 on Paper version 1.21-37-master@dd49fba, the following error occurs:

Error occurred while enabling Brewery v3.1.1 (Is it up to date?)
java.lang.UnsupportedOperationException: Use BukkitRunnable#runTaskLaterAsynchronously(Plugin, long)
	at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskLaterAsynchronously(CraftScheduler.java:642) ~[paper-1.21.jar:1.21-37-dd49fba]
	at BreweryNG-1.4.1.jar/com.dre.brewery.utility.BScheduler$BukkitScheduler.runAsyncTaskLater(BScheduler.java:108) ~[BreweryNG-1.4.1.jar:?]
	at BreweryNG-1.4.1.jar/com.dre.brewery.filedata.BData.readData(BData.java:188) ~[BreweryNG-1.4.1.jar:?]
	at BreweryNG-1.4.1.jar/com.dre.brewery.P.onEnable(P.java:137) ~[BreweryNG-1.4.1.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.jar:1.21-37-dd49fba]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.jar:1.21-37-dd49fba]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:629) ~[paper-1.21.jar:1.21-37-dd49fba]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:578) ~[paper-1.21.jar:1.21-37-dd49fba]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:690) ~[paper-1.21.jar:1.21-37-dd49fba]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:452) ~[paper-1.21.jar:1.21-37-dd49fba]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:327) ~[paper-1.21.jar:1.21-37-dd49fba]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1157) ~[paper-1.21.jar:1.21-37-dd49fba]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-37-dd49fba]

This happens because BukkitScheduler#runTaskLaterAsynchronously(Plugin, BukkitRunnable, long) is deprecated and immediately throws UnsupportedOperationException.

@Tisawesomeness Tisawesomeness linked a pull request Jul 7, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant