FlashyReese / CommandAliases

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

[SERVER] COMMAND_REDIRECT_NOARG - Could not find existing command "gamemode creative" #42

Closed kraoc closed 1 year ago

kraoc commented 1 year ago

config/commandaliases/creatif.json

{ "schemaVersion": 1, "commandMode":"COMMAND_REDIRECT_NOARG", "command":"creatif", "redirectTo":"gamemode creative" }

Same for:

kraoc commented 1 year ago

These are working anyway:

{ "schemaVersion": 1, "commandMode":"COMMAND_REDIRECT_NOARG", "command":"difficile", "redirectTo":"difficulty hard" }

{ "schemaVersion": 1, "commandMode":"COMMAND_REDIRECT_NOARG", "command":"jour", "redirectTo":"time set day" }

FlashyReese commented 1 year ago

I believe they changed gamemode argument in 1.19.3 You can try using custom commands like

{
    "schemaVersion": 1,
    "commandMode": "COMMAND_CUSTOM",
    "command": "creatif",
    "actions": [
        {
            "command": "gamemode creative",
            "commandType": "CLIENT"
        }
    ]
}
kraoc commented 1 year ago

It works ! Thanks !