June 8, 201510 yr I completely forgot how to listen for a message ingame.... can someone show me a snippet of code for it. I thought u have to make a message method and implement message http://gyazo.com/6bc26d78de43ea549ad9f073b5875200 but i clearly am wrong. helps plz
June 8, 201510 yr implement MessageListener and define the listener method class ... extends Script implements Painter, MessageListener public void onMessage(Message m) { if(m.getType().equals(Message.MessageType.GAME)) { // game message } if(m.getType().equals(Message.MessageType.PLAYER)) { // player message } } Edited June 8, 201510 yr by Flamezzz
June 8, 201510 yr Author implement MessageListener and define the listener method class ... extends Script implements Painter, MessageListener public void onMessage(Message m) { } gracias
June 8, 201510 yr Wrote stuff down in pastebin, implement all that's in here and it should work --> http://pastebin.com/2eMkwpX6
Create an account or sign in to comment