Did You Mean ...? [Integrated API] 1.5.1

Command suggestions for mistyped commands

  1. inventivetalent
    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.

    [​IMG]
    (No, I am not this bad at spelling.)



    Config
    Code (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: []
     
    API
    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.

Recent Updates

  1. Download update
  2. 1.8.5 Compatibility
  3. Suggestion API

Recent Reviews

  1. NCSGeek
    NCSGeek
    5/5,
    Version: 1.5.1
    Love this idea, like when your googling something for example, And you mis-type, and it is like "Did you mean (correction)?" but with commands. Something about that just highly apeals to me :D
  2. Hyperbyte
    Hyperbyte
    3/5,
    Version: 1.5.1
    It's a good plugin, but sometimes it gets annoying. When I do /day (built-in to essentials) it tells me 'Did you mean /difficulty?'.
  3. ItsDesox
    ItsDesox
    5/5,
    Version: 1.5.1
    nice plugin really helpful
  4. Minecrafter099
    Minecrafter099
    4/5,
    Version: 1.5
    Great, although... it doesn't work. Every single command automatically fills up the "Disallowed commands" thing. For no reason. Please fix!!!
    1. inventivetalent
      Author's Response
      It tells you in the console that it is going to do that, so you can remove the commands you want to allow.
  5. TOAD_98
    TOAD_98
    5/5,
    Version: 1.4
    Thank you for adding the multiple commands suggestion. It works great!
  6. Elijah
    Elijah
    5/5,
    Version: 1.4
    Hello, whenever I do /kits with Essentials it brings up "Did you mean /kit?" /kits is suppose to also display the kits. Apart from that I love the plugin!
  7. TOAD_98
    TOAD_98
    4/5,
    Version: 1.2
    This is a great plugin. The only thing that I would like to see is 3 to 5 commands listed instead of 1, Changeable in the config. On my server there are some similar commands so it would help.
  8. KleinesGumi
    KleinesGumi
    5/5,
    Version: 1.2
    Very Nice! because: ignorePermission:false its buggy, player can see my Admin commands example: /dpawn - Did you mean /ipban?
    1. inventivetalent
      Author's Response
      'ignorePermission' currently only works for vanilla (or Bukkit) commands.
      I am working on a solution for other plugins.