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

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

Description

@typicalsmc

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


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions