function onPlayerLogin(obj) if (<filter conditions>) allrealplayers.add(obj);function onPlayerLogout(obj) allrealplayers.remove(obj);