04.04.2019, 18:02
Quote:
Again, different command processors go about this different ways.
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? |