LoginServerPackets.SERVER_LIST.writeId(this);
writeByte(_servers.size());
writeByte(_lastServer);
for (ServerData server : _servers)
{
writeByte(server._serverId); // server id
writeByte(server._ip[0] & 0xff);
writeByte(server._ip[1] & 0xff);
writeByte(server._ip[2] & 0xff);
writeByte(server._ip[3] & 0xff);
writeInt(server._port);
writeByte(server._ageLimit); // Age Limit 0, 15, 18
writeByte(server._pvp ? 0x01 : 0x00);
writeShort(server._currentPlayers);
writeShort(server._maxPlayers);
writeByte(server._status == ServerStatus.STATUS_DOWN ? 0x00 : 0x01);
writeInt(server._serverType); // 1: Normal, 2: Relax, 4: Public Test, 8: No Label, 16: Character Creation Restricted, 32: Event, 64: Free
writeByte(server._brackets ? 0x01 : 0x00);
}