if (action.has(MESSAGE)) {
player.setAwayMessage(action.get(MESSAGE));
} else {
player.setAwayMessage(null);
// get the postman messages you might have received when you were away
new ReadPostmanMessages().readMessages(player);
}
player.notifyWorldAboutChanges();
}
}