Skip to content

Support registering extension commands without a root command #6018

@clrxbl

Description

@clrxbl

What feature do you want to see added?

Currently unable to register a command without a root command, e.g. overriding rootComand to a blank string / null returns the following

java.lang.IllegalStateException: rootCommand of extension <ext id>. may not be blank
        at org.geysermc.geyser.extension.command.GeyserExtensionCommand.<init>(GeyserExtensionCommand.java:63) ~[Geyser-Standalone.jar:?]
        at org.geysermc.geyser.extension.command.GeyserExtensionCommand$Builder$1.<init>(GeyserExtensionCommand.java:188) ~[Geyser-Standalone.jar:?]
        at org.geysermc.geyser.extension.command.GeyserExtensionCommand$Builder.build(GeyserExtensionCommand.java:188) ~[Geyser-Standalone.jar:?]
        at org.geysermc.geyser.extension.command.GeyserExtensionCommand$Builder.build(GeyserExtensionCommand.java:76) ~[Geyser-Standalone.jar:?]

Are there any alternatives?

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions