I had just arrived at the hotel, checked in and gotten into my room.
here, the reason we say "had arrived" is because we want to show the order, the series of actions, right? So arriving at the hotel happened first, and then checking and getting into took place later.
And why we say "just" is because we want to say the actions happened with a little time gap.
Am I right to think this way?