Advertisement
Speedyyz

Untitled

Mar 1st, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class TestListener implements RawDataListener {
  2. @Override
  3. public void handlePayload(ChannelBuf data, RemoteConnection connection, Platform.Type side) {
  4. if (!(connection instanceof PlayerConnection)) {
  5. return;
  6. }
  7. System.out.println("received");
  8. System.out.println(data.readUTF());
  9.  
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement