Program: 83886
Project: 83886
Buggy source:
@Override public boolean onCommand(CommandSender cs,Command cmd,String alias,String[] args){
  if (!(cs instanceof Player)) {
    plugin.log("String_Node_Str");
  }
  Player player=(Player)cs;
  if (args.length == 0 || args[0].equalsIgnoreCase("String_Node_Str")) {
    plugin.msg(player,"String_Node_Str");
    plugin.msg(player,ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ CircuitManager.getValidSendersString());
  }
 else   if (args[0].equalsIgnoreCase("String_Node_Str")) {
    if (CircuitManager.hasPendingCircuit(player)) {
      CircuitManager.removePendingCircuit(player);
      plugin.msg(player,"String_Node_Str");
    }
 else {
      plugin.msg(player,"String_Node_Str");
    }
  }
 else   if (args[0].equalsIgnoreCase("String_Node_Str")) {
    if (CircuitManager.hasPendingCircuit(player)) {
      PendingCircuit pc=CircuitManager.getPendingCircuit(player);
      if (pc.hasSenderLocation()) {
        if (pc.hasReceiver()) {
          CircuitManager.addCircuit(pc);
          if (pc.getSenderLocation().getBlock().getType() == Material.WOODEN_DOOR) {
            Block bDoor=pc.getSenderLocation().getBlock();
            int iData=(int)bDoor.getData();
            Block bOtherPiece=bDoor.getRelative((iData & 0x08) == 0x08 ? BlockFace.DOWN : BlockFace.UP);
            CircuitManager.addCircuit(bOtherPiece.getLocation(),pc.getCircuit());
          }
          CircuitManager.removePendingCircuit(player);
          plugin.msg(player,"String_Node_Str");
        }
 else {
          plugin.msg(player,"String_Node_Str");
        }
      }
 else {
        plugin.msg(player,"String_Node_Str");
      }
    }
 else {
      plugin.msg(player,"String_Node_Str");
    }
  }
 else   if (CircuitManager.isValidCircuitType(args[0])) {
    if (player.hasPermission("String_Node_Str" + args[0])) {
      double dDelay=0;
      if (args.length > 1) {
        try {
          dDelay=Double.parseDouble(args[1]);
        }
 catch (        NumberFormatException e) {
          dDelay=-1;
        }
        if (dDelay < 0 || dDelay > QuantumConnectors.MAX_DELAY_TIME) {
          dDelay=0;
          plugin.msg(player,ChatColor.RED + "String_Node_Str" + QuantumConnectors.MAX_DELAY_TIME+ "String_Node_Str");
        }
      }
      String sDelayMsg="String_Node_Str" + args[0] + "String_Node_Str"+ (dDelay == 0 ? "String_Node_Str" : dDelay + "String_Node_Str")+ "String_Node_Str";
      int iDelayTicks=(int)Math.round(dDelay * 20);
      if (!CircuitManager.hasPendingCircuit(player)) {
        CircuitManager.addPendingCircuit(player,CircuitManager.getCircuitType(args[0]),iDelayTicks);
        plugin.msg(player,args[0] + "String_Node_Str" + sDelayMsg);
      }
 else {
        CircuitManager.getPendingCircuit(player).setCircuitType(CircuitManager.getCircuitType(args[0]),iDelayTicks);
        plugin.msg(player,"String_Node_Str" + args[0] + sDelayMsg);
      }
    }
 else {
      plugin.msg(player,ChatColor.RED + "String_Node_Str" + args[0]+ "String_Node_Str");
    }
  }
 else {
    plugin.msg(player,"String_Node_Str");
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onCommand(CommandSender cs,Command cmd,String alias,String[] args){
  if (!(cs instanceof Player)) {
    plugin.log("String_Node_Str");
  }
  Player player=(Player)cs;
  if (args.length == 0 || args[0].equalsIgnoreCase("String_Node_Str")) {
    plugin.msg(player,"String_Node_Str");
    String s="String_Node_Str";
    for (    String sKey : CircuitManager.getValidCircuitTypes().keySet()) {
      s+=sKey + "String_Node_Str";
    }
    plugin.msg(player,ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ s.substring(0,s.length() - 2));
  }
 else   if (args[0].equalsIgnoreCase("String_Node_Str")) {
    if (CircuitManager.hasPendingCircuit(player)) {
      CircuitManager.removePendingCircuit(player);
      plugin.msg(player,"String_Node_Str");
    }
 else {
      plugin.msg(player,"String_Node_Str");
    }
  }
 else   if (args[0].equalsIgnoreCase("String_Node_Str")) {
    if (CircuitManager.hasPendingCircuit(player)) {
      PendingCircuit pc=CircuitManager.getPendingCircuit(player);
      if (pc.hasSenderLocation()) {
        if (pc.hasReceiver()) {
          CircuitManager.addCircuit(pc);
          if (pc.getSenderLocation().getBlock().getType() == Material.WOODEN_DOOR) {
            Block bDoor=pc.getSenderLocation().getBlock();
            int iData=(int)bDoor.getData();
            Block bOtherPiece=bDoor.getRelative((iData & 0x08) == 0x08 ? BlockFace.DOWN : BlockFace.UP);
            CircuitManager.addCircuit(bOtherPiece.getLocation(),pc.getCircuit());
          }
          CircuitManager.removePendingCircuit(player);
          plugin.msg(player,"String_Node_Str");
        }
 else {
          plugin.msg(player,"String_Node_Str");
        }
      }
 else {
        plugin.msg(player,"String_Node_Str");
      }
    }
 else {
      plugin.msg(player,"String_Node_Str");
    }
  }
 else   if (CircuitManager.isValidCircuitType(args[0])) {
    if (player.hasPermission("String_Node_Str" + args[0])) {
      double dDelay=0;
      if (args.length > 1) {
        try {
          dDelay=Double.parseDouble(args[1]);
        }
 catch (        NumberFormatException e) {
          dDelay=-1;
        }
        if (dDelay < 0 || dDelay > QuantumConnectors.MAX_DELAY_TIME) {
          dDelay=0;
          plugin.msg(player,ChatColor.RED + "String_Node_Str" + QuantumConnectors.MAX_DELAY_TIME+ "String_Node_Str");
        }
      }
      String sDelayMsg="String_Node_Str" + args[0] + "String_Node_Str"+ (dDelay == 0 ? "String_Node_Str" : dDelay + "String_Node_Str")+ "String_Node_Str";
      int iDelayTicks=(int)Math.round(dDelay * 20);
      if (!CircuitManager.hasPendingCircuit(player)) {
        CircuitManager.addPendingCircuit(player,CircuitManager.getCircuitType(args[0]),iDelayTicks);
        plugin.msg(player,args[0] + "String_Node_Str" + sDelayMsg);
      }
 else {
        CircuitManager.getPendingCircuit(player).setCircuitType(CircuitManager.getCircuitType(args[0]),iDelayTicks);
        plugin.msg(player,"String_Node_Str" + args[0] + sDelayMsg);
      }
    }
 else {
      plugin.msg(player,ChatColor.RED + "String_Node_Str" + args[0]+ "String_Node_Str");
    }
  }
 else {
    plugin.msg(player,"String_Node_Str");
  }
  return true;
}