Skip to content

AdvancedJobs 1.9.8 crashes on Folia 1.21.11 with UnsupportedOperationException from Bukkit scheduler #102

@Adrils-dev

Description

@Adrils-dev

Describe the bug

AdvancedJobs 1.9.8 crashes during startup on Folia 1.21.11.

The plugin throws UnsupportedOperationException because it still uses Bukkit scheduler async calls that are not supported on Folia.

I first tested it with default config and it crashed in leaderboard startup logic.
After disabling leaderboard cache, it still crashes again in jobs reset/startup logic.

So the issue is not limited to leaderboards. The plugin still appears to use unsupported scheduler calls in multiple places on Folia.

Main errors seen:

  • LeaderboardController startup
  • SpigotPlugin.runAsync
  • UserCache.asyncModifyAll
  • JobsResetHandler.reset
  • JobsResetHandler.start
  • CraftScheduler.cancelTasks on disable

This prevents the plugin from enabling correctly on Folia 1.21.11.

How to reproduce

I have created the GitHub bug report with full reproduction steps and issue details.

Please review it and let me know if there is a working Folia-safe build or official workaround.

Screenshots / Videos

latest (72).log

Server Log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: UnconfirmedThis could possibly be a bug, but it hasn't been confirmed yet.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions