How would you get something someone types in chat that isn't a command. (If they type cat without the / it will do something)
Listen for the chatevent, then get the message, then check to see if the message contains the appropriated arguments, if it does, execute.
Something like this (wasn't written with an IDE): Code:java public void onChat(AsyncPlayerChatEvent event){ if(event.getMessage().contains("cat")){ event.getPlayer().sendMessage(ChatColor.GREEN + "Your message had the word 'cat' in it!"); }}
Ty. I thought you could just use a command method, but instead of getting the command, you could just use args.