FlashyReese / CommandAliases

Alternate short commands for complex commands
MIT License
25 stars 6 forks source link

CommandMode COMMAND_REDIRECT_NOARG will not work with numbers #33

Closed bluprintLFT closed 2 years ago

bluprintLFT commented 2 years ago

If I put any number in the redirectTo field, the command will not show up ingame.

Example: { "commandMode": "COMMAND_REDIRECT_NOARG", "redirectCommand": { "command": "day", "redirectTo": "time set day" } } will work.

{ "commandMode": "COMMAND_REDIRECT_NOARG", "redirectCommand": { "command": "day", "redirectTo": "time set 0" } } will NOT work.

FlashyReese commented 2 years ago

As mentioned in the wiki it does not work with arguments.

What want you to do is achievable by using custom commands

{
    "commandMode": "COMMAND_CUSTOM",
    "customCommand": {
        "parent": "day"
        "actions": [
            {
                "command": "time set 0",
                "commandType": "SERVER"
            }
        ]
    }
}