Custom Commands with Clickable Links

Basically, I’d like a plugin where someone could do /Vote and then a link pop up in chat redirecting them to the voting page of my website.

Or

/Discord and then the link to our servers discord.

You could craft something yourself with this.

Untested script:

function onGameInitializationEvent(event){
    var cmd = {
            executor: function(commandSource, commandContext) {
                commandSource.sendMessage(Text.of("Vote: www.test.com"));
            },
            commands: ["vote"]
        };
    commandManager.register(cmd);
}

I cannot code, so that script is basically a bunch of uncomprehended words.

Just copy and paste it into the folder what the plugin instructions say. The things you want to change are in quotes ".

They wanted it clickable, it’s not quite as simple as you made it out to be.

function onGameInitializationEvent(event){
    var cmd = {
            executor: function(commandSource, commandContext) {
                var text = Text.builder("Click here to vote").onClick(TextActions.openUrl(new URL("http://www.test.com"))).build();
                commandSource.sendMessage(text);
            },
            commands: ["vote"]
        };
    commandManager.register(cmd);
}

I’m not sure that it works because you might have to import URL, but I don’t know.
I don’t think anyone will code just a plugin for your specific purpose.