03.04.2019, 03:26
Quote:
You misunderstood me. I'm not talking about alias. I don't know the name of a command. I'm just writing '/ hel'.
I want to say that the command '/ help' is on the server instead of the unknown command error. I guess you didn't understand me for using ****** translate. XD |
From my understanding you wish to display a message like "Sorry the command '/hel' doesn't exist! Did you mean '/help'?"
To do this you will need a list of all of your commands and a way to compare each command to the given input. You may even want a Levenshtein distance calculation. This will determine which command is closest to the input.
Once you have that part figured out the rest depends on what command processor you use. So, again, what command processor do you use?