FlashyReese / CommandAliases

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

Unsupported schema version error #49

Closed danners430 closed 1 year ago

danners430 commented 1 year ago

I've been unable to load any custom commands at all onto a test server - every time I do I get an "unsupported schema version" error.

My custom command file:

{
    "commandMode": "COMMAND_CUSTOM",
    "customCommand": {
        "parent": "smite",
        "permission": 2,
        "children": [
            {
                "child": "user",
                "type": "argument",
                "argumentType": "minecraft:greedy_string",
                "message": "{{user}} was smote",
                "actions": [
                    {
                        "command": "execute at {{user}} run summon minecraft:lightning_bolt ~ ~ ~",
                        "commandType": "CLIENT"
                    }
                ]
            }
        ]
    }
}

Console error message when loading custom commands:

[13:43:07] [Server thread/INFO]: 
commandaliases
└── custom_commands.json - Unsupported schema version
FlashyReese commented 1 year ago
{
    "schemaVersion": 1,
    "commandMode": "COMMAND_CUSTOM",
    "command": "smite",
    "permission": 2,
    "children": [
        {
            "child": "user",
            "type": "argument",
            "argumentType": "minecraft:player",
            "message": "{{user}} was smote",
            "actions": [
                {
                    "command": "execute at {{user}} run summon minecraft:lightning_bolt ~ ~ ~",
                    "commandType": "CLIENT"
                }
            ]
        }
    ]
}

Check the updated wiki for more information when using 1.0.0 https://wiki.commandaliases.flashyreese.me/

danners430 commented 1 year ago

That'll do it - I completely missed the format changes when going through the versions... many thanks for the assistance!

justinbchen commented 1 year ago

The Modrinth page still links to the old GitHub wiki; I had no idea that this new wiki existed. Is it possible to update the Modrinth/Curseforge/GitHub pages to link to the new wiki?