This plugin can replace the default Unknown Command message and instead of suggesting to type /help it suggests you the most likely command you actually wanted to execute.
(No, I am not this bad at spelling.)
Config
APICode (Text):
#Replace the 'Unknown Command' message?
replace: false
#Message to be sent (%s is replaced by the command)
message: '&3[DYM] &bDid you mean &a%s&b?'
#If not-permitted commands should be included in the suggestion
ignorePermission: false
#Amount of suggested commands (maximum)
suggestedCommands: 1
#List of disallowed commands for suggestions (setting 'ignorePermission' to 'true' will ignore these)
disallowedCommands: []
This plugin also has an API to generate suggestions for your own plugins
This method will return a List of possible alternatives.
The Match object contains the actual match and the amount of matches in the matched String.
Code (Java):
DYMApi.matchString("doggletownfall", new String[] { "toggledownfall", "togglesomething", "togglesomethingelse", "lorem_ipsum" });
This method allows you to send the configured 'Did you mean' message with the given arguments
Code (Java):
DYMApi.suggestToPlayer(player, "doggletownfall", new String[] { "toggledownfall", "togglesomething", "togglesomethingelse", "lorem_ipsum" }, true);
Links
Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.

Did You Mean ...? [Integrated API] 1.5.1
Command suggestions for mistyped commands
Recent Updates
- Download update Sep 9, 2015
- 1.8.5 Compatibility May 24, 2015
- Suggestion API Mar 11, 2015