player-events icon indicating copy to clipboard operation
player-events copied to clipboard

[REQUEST] Allow custom prefix for custom commands

Open tioalexis opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When you setup a custom command like /discord, you get an error saying "Unknown or incomplete command".

Describe the solution you'd like We should be able to set a custom command prefix to any character using a separate custom_command_prefix field. For example:

"custom_command_prefix": "!",
"custom_commands": [ 
    {
      "command": "discord",
      "actions": [ "Our discord link is blah blah blah" ],
      "broadcast_to_everyone": false,
      "pick_message_randomly": false
    }
]

This specific setup will then respond to the !discord chat event from any player and the server will respond with the message containing the link to a discord server.

Of course the downside of this is that other players can see that you sent !discord but I think it's better than having an error message.

tioalexis avatar Oct 01 '21 08:10 tioalexis

you have to type / ;) in config before discord and you won't get any error .. like this:

{ "command": "/spawn", "actions": [ "/tp ${player} 2050 69 -3058" ], "broadcast_to_everyone": false },

PortableGames avatar Oct 09 '21 07:10 PortableGames

As PortableGames said, you have to put the command as "command": "/command"

IotaBread avatar Dec 21 '21 17:12 IotaBread