Exemplo n.º 1
0
  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);
    }
  }
Exemplo n.º 2
0
 public PTabComplete(TCPReader in) throws Exception {
   super(packetId);
   text = in.readString();
 }