samy109 41 Posted March 10, 2015 Looked all through api, couldn't figure it out. How do I implement and use it? Much appreciated if someone could tell me, thanks.
Vlad 216 Posted March 10, 2015 1. Put the method in your main script class and override it. @Override public void onMessage(Message m) { } 2. Get a message and do stuff with it. private int cut; @Override public void onMessage(Message m) { if (m.getMessage().contains("You cut some logs.")) { cut++; } }
samy109 41 Author Posted March 10, 2015 1. Put the method in your main script class and override it. @Override public void onMessage(Message m) { } 2. Get a message and do stuff with it. private int cut; @Override public void onMessage(Message m) { if (m.getMessage().contains("You cut some logs.")) { cut++; } } Thanks, explains everything.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.