Send a packet to a room from


When a user create a new room ( line 359 in, i want to send a presence or iq (doesn’t matter) packet to another room. I can get the room with the following line that i will send the packet

MUCRoom parentZoneRoom = server.getChatRoom(zone);

but i can not send a packet to this room. I think, parentZoneRoom.send(packet) is supposed to send my packet. How can i do that? I don’t get any error also.


My packet was blocked by a lot of permissions and role check. Here is the solution.

for(MUCRole occupant : parentZoneRoom.getOccupants()) {

thanks anyway,