March 23, 201510 yr If i'd like to capture when i recieve for example willog logs, is this the correct code to use? public void onMessage(String message) throws InterruptedException{ if(message.contains("logs")){ amountOfLogs++; } } i saw it this way in some other guides but it doesnt work
March 23, 201510 yr I use this: public void onMessage(Message message) throws java.lang.InterruptedException { String txt = message.getMessage().toLowerCase(); if (txt.contains("the fire catches")) { firesMade++; } } Good luck!
March 23, 201510 yr Author I use this: public void onMessage(Message message) throws java.lang.InterruptedException { String txt = message.getMessage().toLowerCase(); if (txt.contains("the fire catches")) { firesMade++; } } Good luck! works fine for me THX alot bro
March 24, 201510 yr If i'd like to capture when i recieve for example willog logs, is this the correct code to use? public void onMessage(String message) throws InterruptedException{ if(message.contains("logs")){ amountOfLogs++; } } i saw it this way in some other guides but it doesnt work This was the old API method in case you were wondering why it didn't work. Message is the new param.
Create an account or sign in to comment