Bug Closed · Resolved

[Folia 1.21.11] UnsupportedOperationException in MythicMobs Metrics scheduler

#10027 opened by yoannfm 1 week ago

yoannfmreported this bug

Description

I am experiencing an UnsupportedOperationException with MythicMobs Premium 5.13.0 running on Folia.

The exception appears to come from the MythicMobs metrics system attempting to use the Bukkit scheduler.

Environment

  • Minecraft: 1.21.11
  • Server software: Folia
  • Folia build: 14
  • Java: 25
  • MythicMobs: Premium 5.13.0

Error

[07:44:49 WARN]: Exception in thread "Timer-0" java.lang.UnsupportedOperationException
[07:44:49 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517)
[07:44:49 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:227)
[07:44:49 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:209)
[07:44:49 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskLater(CraftScheduler.java:173)
[07:44:49 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTask(CraftScheduler.java:142)
[07:44:49 WARN]:        at MythicMobsPremium-5.13.0.jar//io.lumine.mythic.metrics.bukkit.Metrics$1.run(Metrics.java:177)
[07:44:49 WARN]:        at java.base/java.util.TimerThread.mainLoop(Timer.java:572)
[07:44:49 WARN]:        at java.base/java.util.TimerThread.run(Timer.java:522)

Expected behavior

MythicMobs should not throw an exception when running its metrics task on Folia.

Actual behavior

The metrics task throws an UnsupportedOperationException when it attempts to use the Bukkit scheduler.

Additional information

The exception occurs in:

io.lumine.mythic.metrics.bukkit.Metrics$1.run(Metrics.java:177)

Could you confirm whether this is a compatibility issue with Folia's scheduler and whether it can be fixed in a future MythicMobs release?

If there is currently a workaround, such as disabling the metrics task, please let me know.

Thank you.

Sign in to join the discussion.