fre024 Posted June 10, 2014 Share Posted June 10, 2014 public void onMessage(String message) throws InterruptedException { Mylog("Checking chat"); if (message.contains("poisoned")) { } } This does nothing for me Link to comment Share on other sites More sharing options...
Jack Posted June 10, 2014 Share Posted June 10, 2014 public void onMessage(Message message) { if(message!=null){ //stuff } } It now takes on a Message type, not string type. Link to comment Share on other sites More sharing options...
Extreme Scripts Posted June 10, 2014 Share Posted June 10, 2014 public void onMessage(Message message) { if(message!=null){ //stuff } } It now takes on a Message type, not string type. It actually accepts String as a parameter. On-topic: The onMessage is broken as of the moment yes. Link to comment Share on other sites More sharing options...
thepecher Posted June 10, 2014 Share Posted June 10, 2014 public void onMessage(String message) throws InterruptedException { Mylog("Checking chat"); if (message.contains("poisoned")) { } } This does nothing for me Try just to change a variable inside the onMessage then do whatever you want with it in the onloop Link to comment Share on other sites More sharing options...
denoxum Posted June 10, 2014 Share Posted June 10, 2014 message.getMessage().contains("something") Link to comment Share on other sites More sharing options...
Jack Posted June 10, 2014 Share Posted June 10, 2014 It actually accepts String as a parameter. On-topic: The onMessage is broken as of the moment yes. Osbot 2 Link to comment Share on other sites More sharing options...