player-events
player-events copied to clipboard
[REQUEST] Allow custom prefix for custom commands
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.
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 },
As PortableGames said, you have to put the command as "command": "/command"