private void sendCharacterList(ClientConnection client, SubPacket packet) { List <Character> characterList = Database.getCharacters(client.currentUserId); if (characterList.Count > 8) { Log.error("Warning, got more than 8 characters. List truncated, check DB for issues."); } CharacterListPacket characterlistPacket = new CharacterListPacket(0, characterList); List <SubPacket> subPackets = characterlistPacket.buildPackets(); BasePacket basePacket = BasePacket.createPacket(subPackets, true, false); BasePacket.encryptPacket(client.blowfish, basePacket); client.queuePacket(basePacket); }