Dunno if it's possible, but would it be possible to add a Event Listener for text input, so that instead of having to check the input to see if the user typed anything that triggers an action, I can just invoke an Event Listener.
Instead of something like
Scanner sc = new Scanner(System.in);
if(sc.nextLine().equals("!help"){
// do something
}else{sc.nextLine().equals("y"){
// continue
}
I can just declare an ActionListener to Scanner inputs.