147148149150151152153154155156157
return; } if (object instanceof ChatMessage) { ChatMessage message = (ChatMessage) object; // Invalid text? String messageText = message.text; if (messageText == null) return;
7778798081828384858687
} // Chat message if (object instanceof ChatMessage) { ChatMessage message = (ChatMessage) object; logMessage("> " + message.text); return; }
162163164165166167168169170171
public void sendChat(String message) { if (message == null || message.length() == 0) return; ChatMessage chatMessage = new ChatMessage(); chatMessage.text = message; sendTCP(chatMessage); }