FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

UnsupportedOperationException when register/unregister commands during runtime on Folia · Issue #686 · CommandAPI/CommandAPI · GitHub

UnsupportedOperationException when register/unregister commands during runtime on Folia #686

Description

CommandAPI version

11.1.0

Minecraft version

1.21.11

Are you shading the CommandAPI?

No

What I did

My server is running Folia
I reload the my plugin which use CommandAPI
then CommandAPI called the bukkit scheduler on this line

Bukkit.getScheduler().scheduleSyncDelayedTask(CommandAPIPaper.getPaper().getPlugin(), () -> {

caused the plugin from not loading

What actually happened

Plugin denied to load because of a scheduler mismatch

What should have happened

Plugin load normally

Server logs and CommandAPI config

No response

Other

This can be fixed by swapping that line of code to a correct scheduler that Folia expects

Bukkit.getScheduler().scheduleSyncDelayedTask(CommandAPIPaper.getPaper().getPlugin(), () -> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL