- Joined
- Jul 31, 2014
- Messages
- 8
- Thread Author
- #1
So I have the listener implemented now, this is my on message recieved:
The problem is I don't think the listener is ever getting the message. Is there something I have to put in my onStart to start the listener?
Code:
public void onMessageReceived(MessageEvent e) {
String message = e.getMessage();
if(e.getType()==MessageEvent.Type.SERVER){
if(message.contains("boots")&&toAlchID==items[0]){
rightCupboard =true;
}else if(message.contains("kiteshield")&&toAlchID==items[1]){
rightCupboard = true;
}else if(message.contains("helm")&&toAlchID==items[2]){
rightCupboard = true;
}else if(message.contains("Emerald")&&toAlchID==items[3]){
rightCupboard = true;
}else if(message.contains("longsword")&&toAlchID==items[4]){
rightCupboard = true;
}else{
rightCupboard = false;
}
}
}