public PTeams(TCPReader in) throws Exception { super(packetId); teamName = in.readString(); mode = in.readByte(); if (mode == 1) return; if (mode == 0 || mode == 2) { teamDisplayName = in.readString(); teamPrefix = in.readString(); teamSuffix = in.readString(); friendlyFire = in.readByte(); } if (mode == 0 || mode > 2) { playerCount = in.readShort(); players = in.readStringArray(playerCount); } }
public PTabComplete(TCPReader in) throws Exception { super(packetId); text = in.readString(); }