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

dispatchCommand not working for CommandAPI commands on 1.20.6+ Paper · Issue #583 · CommandAPI/CommandAPI · GitHub

dispatchCommand not working for CommandAPI commands on 1.20.6+ Paper #583

Description

CommandAPI version

9.5.1

Minecraft version

1.20

Are you shading the CommandAPI?

No

What I did

CommandAPICommand("shquests")
        .withSubcommand(
            CommandAPICommand("path")
                .withArguments(
                    EnumArgument("path", Path::class.java)
                )
                .executes(CommandExecutor { sender, args ->
                    val player = sender as Player

                    player.choosePath(theme, progressor, registry, args.getTyped("path"))
                }, ExecutorType.PLAYER)
        ).register();

// Sometime during runtime
Bukkit.dispatchCommand(me, 'shquests path TEST');

What actually happened

What should have happened

The command should have executed like it does when executed manually from a player (without dispatchCommand).

Server logs and CommandAPI config

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingimplemented for next releaseThis has been implemented in the current dev build for the next public release

    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