return;
}
if (message instanceof OrbBystandersMessage) {
OrbBystandersMessage msg = (OrbBystandersMessage) message;
setBystanders(msg.getBystanders());
return;
}
if (message instanceof OrbChangeNameMessage) {
OrbChangeNameMessage msg = (OrbChangeNameMessage) message;
usernameAlias = msg.getName();
if (presenceInfoAdded) {
presenceInfo.setUsernameAlias(usernameAlias);
pm.requestChangeUsernameAlias(presenceInfo.getUsernameAlias());
}
nameTagComp.setNameTag(EventType.CHANGE_NAME, username, usernameAlias);
return;
}
if (message instanceof OrbAttachMessage) {
OrbAttachMessage msg = (OrbAttachMessage) message;
attachOrb(msg.getHostCellID(), msg.isAttached());
return;
}
if (message instanceof OrbAttachVirtualPlayerMessage) {
OrbAttachVirtualPlayerMessage msg = (OrbAttachVirtualPlayerMessage) message;
PresenceInfo info = pm.getPresenceInfo(msg.getHostCallID());
if (info == null) {
logger.warning("OrbAttachVirtualPlayerMessage, no presence info for callID "
+ msg.getHostCallID());
return;
}
attachOrb(info.getCellID(), true);
return;