Innectis Community Forum

Author Topic: Invalid Command Suggestions?  (Read 3661 times)

Nosliw

  • Retired Staff
  • Rainbow Member
  • *****
  • Posts: 1722
  • Gender: Male
  • You can't hurt me, I'm a Jelly Fish..
    • View Profile
    • Uber Island
Invalid Command Suggestions?
« on: April 02, 2012, 03:13:10 PM »
If you type a command wrong or incorrectly, possibly because your not sure exactly what it is or a typo, currently it says 'Unknown Command. Type "Help" for Help.', my suggestion is that it will suggest other commands that are similar to what you typed. Such as if you do '/send' or '/sendvualta' it will say something like: 'Did you mean '/sendmoney'?'

Thoughts?
  • Nosliw
    Nosliw
    Nosliw
I'm here to help.. With the following exception:



@EventHandler(priority = EventPriority.LOW)
public void onPlayerJoin(PlayerJoinEvent event) {
    Player player = event.getPlayer();
    if (player.getName().equals("SGT_ADZ") {
        player.kickPlayer("Yeah... Nah!");
        return;
    }
}

tommykins20

  • Goldy VIP
  • Sr. Member
  • ****
  • Posts: 322
  • Hi, I'm Tommy
    • View Profile
Re: Invalid Command Suggestions?
« Reply #1 on: April 02, 2012, 03:29:12 PM »
Not that I know of a way to handle the unknown command messages. Otherwise nice
  • tommykins20
    tommykins20
    tommykins20
I love the good old OC days

StarScythe7

  • Retired Staff
  • Hero Member
  • *****
  • Posts: 624
  • Gender: Male
    • View Profile
Re: Invalid Command Suggestions?
« Reply #2 on: April 02, 2012, 03:30:41 PM »
This would be a helpful feature, I find myself forgetting commands sometimes.
  • StarScythe7
    StarScythe7
    StarScythe7