@Override protected void writeImpl(AionConnection con) { writeC(action); if (con.getActivePlayer().havePermission(MembershipConfig.EMOTIONS_ALL)) { writeH(76); // 4.5 writeH(85); for (int i = 0; i < 69; i++) { // 4.5 for (int i = 0; i < 85; i++) writeH(76 + i); writeD(0x00); } } else if (emotions == null || emotions.isEmpty()) { writeH(0); } else { writeH(emotions.size()); for (Emotion emotion : emotions) { writeH(emotion.getId()); writeD(emotion.getRemainingTime()); // remaining time } } }