hi!
i am working on a server module and i am listening to two events:
1. CLIENT_ADDED
2. ROOM_CREATE_REQUESTED
when the first event is dispatched, i can access the event.getClient().getClientID() (or whatever property/method) because the getClient() is returning a result
However in the second event there is no trace of the client, i can not request the getClientID() nor the getAttribute on the client (because obviously it isn't there :) )
the code is very simple:
server.addEventListener(ServerEvent.ROOM_CREATE_REQUESTED, this, "onRoomCreateBefore");
public void onRoomCreateBefore(ServerEvent evt) {
log.info(evt.getClient().getClientID());
}
what am i doing wrong?
kind regards
Willem