// Send to all clients, because the message is originating from a non-client source.
Set<WonderlandClientID> clientIDs = sender.getClients();
// Construct a new message with appropriate fields.
TextChatMessage textMessage = new TextChatMessage(msg, from, "");
sender.send(clientIDs, textMessage);
}
/**
* Adds a listener object that will be called whenever a text chat message is sent.
* Global messages sent from sendGlobalMessage are not included in these notifications.